Closed jbpionnier closed 8 years ago
This length is not the same as string length, since many characters require more bytes to encode. For example:
var snowman = "☃"; snowman.length // 1 Buffer.byteLength(snowman) // 3
Your changes have been applied to master. Thanks!
This length is not the same as string length, since many characters require more bytes to encode. For example: