Skip to content

Tag: utf-16

JavaScript strings – UTF-16 vs UCS-2?

I’ve read in some places that JavaScript strings are UTF-16, and in other places they’re UCS-2. I did some searching around to try to figure out the difference and found this: Q: What is the difference between UCS-2 and UTF-16? A: UCS-2 is obsolete terminology which refers to a Unicode implementation up to Unicode 1.1, before surrogate code points and