Re: UTF-8 code in HTML

From: G. Adam Stanislav (adam@whizkidtech.net)
Date: Tue Apr 11 2000 - 21:23:56 EDT


At 12:57 11-04-2000 -0800, Fady Elias wrote:
>1- how can I get the UTF-8 code point for each char.
> ex: what is the UTF-8 code point for the Japanese char 'A' with
> the unicode code point 3042
>
>2 - how can I represent these values in HTML file. for example to
>represent the English char 'A' you type the value (&#65), how can i do the
>same using unicode or UTF-8 values .

For the Unicode code point 3042, you could type あ (assuming you are
using the hexadecimal code points) in your text, then convert it to
straight UTF-8 using hutrans from <http://www.whizkidtech.net/i18n/>. Some,
but not all, browsers will even understand &#x3042 without a conversion to
UTF-8, but, of course, more of them will understand it if you do convert it.

Cheers,
Adam
-----------------------------------------------------------
"I think, therefore I am."
                    - Seventeenth Century Philosophy

"I publish what I think, therefore I have."
                    - Twenty-First Century Action

Details at http://www.OnlinePublisher.net/



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:01 EDT