JavaScript strings – UTF-16 vs UCS-2?
JavaScript, strictly speaking, ECMAScript, pre-dates Unicode 2.0, so in some cases you may find references to UCS-2 simply because that was correct at the time the reference was written. Can you point us to specific citations of JavaScript being “UCS-2”? Specifications for ECMAScript versions 3 and 5 at least both explicitly declare a String to … Read more