encoding.js
This file
Path
test/helpers/encoding.js
7 lines · 324 bytes · JavaScript
Last changed by
Add `binary` and `preserveNewlines` options to `subprocess.readable()` (#922)ehmickybefore adoption56ee48e
History of this fileTake it
12345678const textEncoder = new TextEncoder();
export const multibyteChar = '\u{1F984}';export const multibyteString = `${multibyteChar}${multibyteChar}`;export const multibyteUint8Array = textEncoder.encode(multibyteString);export const breakingLength = multibyteUint8Array.length * 0.75;export const brokenSymbol = '\uFFFD';