Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q684 Is JavaScript a Unicode aware language?

irt.org | Knowledge Base | JavaScript | General | Q684 [ previous next ]

Q684 Is JavaScript a Unicode aware language?

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');

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.