by eloff · 12y ago · 0 comments
The issues related to combining marks are not UTF-16 problems and are not solved by converting to codepoints.
Also, Java as well as many other UTF-16 based languages have much better unicode support than JavaScript (like access to codepoints and unicode character classes in regular expressions).
As always, if something can be done in a sloppy broken way JavaScript will take advantage of it to the fullest.
If you have an easy solution of deprecating UTF-16 everywhere where it's used (while not breaking anything that currently works), I'm all ears. Unicode is a pragmatic, not a perfect, standard and there are historical mistakes. But for better or for worse they exist and will probably stay.