Compute the length in bytes of a javascript string, when encoded in UTF8

Compute the UTF-8 byte length of a JavaScript string, which String.length does not give you.

1 min read Updated

Search articles

Type to filter articles. Use the arrow keys to move through results and Enter to open one. Press Escape to close.