[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [syndication] Entities and Char sets
2001-11-27 19:44:54, Julian Bond <julian_bond@voidstar.com>:
> So as the author of a toolkit to generate this, I'd need to
> do a UTF-8
No, you *don't* have to do this. You just need to find a
value of a character (every programming language I know
provides for this). Then you write &#n; where n is this value
in decimal (not hex).
> And as the author of the toolkit to read this, I'd have
> to pass it on to a browser as... ...what?
Verbatim. ö --> ö. If you write all ASCII
characters as ASCII characters, and all other characters as
&#n; you can (and should) add the following line to the 'head'
of the HTML document:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Then all characters will work in Netscape 4.x too.
> When you say "all" ASCII, that'll be apart from &, ' < > of
> course.
Only & and <. You can write ' and > directly. (Though you must
escape ' if you use it inside a attribute delimited by '.)
--
Karl Ove Hufthammer