Re:You can't just assume UTF-8
by extraduder_ire on Tuesday April 30, 2024 @07:14AM
(#40209701)
String.length is fine, since it counts UTF16 (UCS2?) code units. The attribute was only accidentally useful for telling how many characters were in a string for a long time, so people think it should work that way.
[ Parent
| on HN ]
There are no comments on this comment yet.