Comment Comment by trurl42 And with that you're completely wrong, since strings in JavaScript are UTF-16.It just so happens that your example consists of two UTF-16 codepoints.(Node.js' Buffer uses UTF-8 by default). parent trurl42 2 years ago
It just so happens that your example consists of two UTF-16 codepoints.
(Node.js' Buffer uses UTF-8 by default).