We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b399472 commit dfbc0d9Copy full SHA for dfbc0d9
packages/utils/src/envelope.ts
@@ -53,6 +53,9 @@ export function forEachEnvelopeItem<E extends Envelope>(
53
});
54
}
55
56
+/**
57
+ * Encode a string to UTF8.
58
+ */
59
export function encodeUTF8(input: string, textEncoder?: TextEncoderInternal): Uint8Array {
60
const utf8 = textEncoder || new TextEncoder();
61
return utf8.encode(input);
0 commit comments