Forum OpenACS Q&A: Response to string size

Collapse
4: Response to string size (response to 1)
Posted by Robert Locke on
In the simple case of "abcdef", yes, both give the same result because each character is represented by a single byte.

However, with extended UTF character set encoding, some characters are multi-byte and need to be represented with 2 or 3 bytes.  In those cases, bytelength and length would yield different results.