When javascript encodes one character as 2 bytes or more, why does the following:
Buffer.from("abc").byteLength
output 3? Should not it be 6?
When javascript encodes one character as 2 bytes or more, why does the following:
Buffer.from("abc").byteLength
output 3? Should not it be 6?