From: Otto Stolz (Otto.Stolz@uni-konstanz.de)
Date: Tue May 06 2003 - 09:13:33 EDT
SRIDHARAN Aravind wrote:
> e.g, For á, the unicode equivalent is \u00e1.
> And when I display this character on browser what I get is \u00e1
> instead of á.
- You have to use one of the HTML forms rather than a Java surrogate.
Some of these were pointed out by others, I'd like to give th full
Chose from the following options:
· Encode the character in a suitable transfer encoding ("charset",
in HTTP lingo). For your example, ISO 8859-1 is suitable (as for
all characters from U+0000 through U+00FF), cf.
UTF-8 is suitable for all Unicode characters, cf.
· Use a character entity, e. g. "á" (case sensitive), cf.
· Use a Numeric character Reference (NCR),
These come in two flavours:
- decimal, e. g. "á",
- hexadecadic, e. g. "á" (case insensitive).
- You have to tell the browser about the encoding you are using,
Examples for these techiques can be found at:
(For the latter two, you need a CJK font to display all characters).
Look also at the HTML source of these examples.
- Note that Netscape 4.7 (and earlier versions) does display both
character entities and NCRs only if these characters could also
be encoded in the transfer encoding (charset) used. To be on the
safe side, you can declare UTF-8 encoding, and type your whole
HTML source in ASCII, using entities/NCRs for all non-ASCII
This archive was generated by hypermail 2.1.5 : Tue May 06 2003 - 10:06:25 EDT