3 ms·
the length property and the charAt method for example are defined to use UTF-16. length is the length in UTF-16 code units and charAt returns a UTF-16 code unit
by anonymoushn 4y ago
the length property and the charAt method for example are defined to use UTF-16. length is the length in UTF-16 code units and charAt returns a UTF-16 code unit at a certain index.
- mlindner 4y agoThat's something that should be addressed with the javascript steering committees (if such things exist) so that the standard is updated to support UTF-8.