3 ms·
What I had in mind was Unicode string normalization, comparison and sorting as well as finding the length of strings correctly when they contain combining c
by networked 12y ago
What I had in mind was Unicode string normalization, comparison and sorting as well as finding the length of strings correctly when they contain combining characters, ligatures and such. What is the library of choice for this?
For anyone curious about the potential issues there is a good article about the flaws in JavaScript's handling of Unicode at http://mathiasbynens.be/notes/javascript-unicode#accounting-for-lookalikes http://mathiasbynens.be/notes/javascript-unicode#accounting-.... HN discussion: https://news.ycombinator.com/item?id=7221362 https://news.ycombinator.com/item?id=7221362.
- meric 12y agoYes, you'll need a unicode library for that. Lua's length operator count bytes not characters.