JavaScript’s internal character encoding: UCS-2 or UTF-16?

Does JavaScript use UCS-2 or UTF-16 encoding? Since I couldn’t find a definitive answer to this question anywhere, I decided to look into it. The answer depends on what you’re referring to: the JavaScript engine, or JavaScript at the language level.


This content originally appeared on Mathias Bynens and was authored by Mathias

Does JavaScript use UCS-2 or UTF-16 encoding? Since I couldn’t find a definitive answer to this question anywhere, I decided to look into it. The answer depends on what you’re referring to: the JavaScript engine, or JavaScript at the language level.


This content originally appeared on Mathias Bynens and was authored by Mathias


Print Share Comment Cite Upload Translate Updates
APA

Mathias | Sciencx (2012-01-17T22:18:54+00:00) JavaScript’s internal character encoding: UCS-2 or UTF-16?. Retrieved from https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/

MLA
" » JavaScript’s internal character encoding: UCS-2 or UTF-16?." Mathias | Sciencx - Tuesday January 17, 2012, https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/
HARVARD
Mathias | Sciencx Tuesday January 17, 2012 » JavaScript’s internal character encoding: UCS-2 or UTF-16?., viewed ,<https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/>
VANCOUVER
Mathias | Sciencx - » JavaScript’s internal character encoding: UCS-2 or UTF-16?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/
CHICAGO
" » JavaScript’s internal character encoding: UCS-2 or UTF-16?." Mathias | Sciencx - Accessed . https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/
IEEE
" » JavaScript’s internal character encoding: UCS-2 or UTF-16?." Mathias | Sciencx [Online]. Available: https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/. [Accessed: ]
rf:citation
» JavaScript’s internal character encoding: UCS-2 or UTF-16? | Mathias | Sciencx | https://www.scien.cx/2012/01/17/javascripts-internal-character-encoding-ucs-2-or-utf-16/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.