Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q684 Is JavaScript a Unicode aware language?

You are here: irt.org | FAQ | JavaScript | General | Q684 [ previous next ]

The ECMAScript standard specifies support for Unicode charcters within string constants. Internet Explorer 4 supports the ECMAScript standard, Netscape Navigator 4 partially supports the ECMAScript standard. Netscape Navigator 5 (when it is released) will fully support the ECMAScript standard.

To include Unicode characters you need to specify an escape sequence:

document.write('\uXXXX');

where XXXX specifies the hexidecimal value of the Unicode character.

Internet Explorer 4 fully supports this, Netscape Navigator 4 only supports Latin-1 encoding using:

document.write('\xXX');

©2018 Martin Webb