unicode html

Jim jhefferon at smcvt.edu
Mon Jul 17 14:31:32 EDT 2006


Sybren Stuvel wrote:
> lorenzo.viscanti at gmail.com enlightened us with:
>
> > As an example I would like to do this kind of conversion:
> > \uc3B4 => ô
> > for all available html entities.
>
> Why would you want that? Just make sure you declare your document as
> UTF-8, encode it as such, and you're done. Much easier.
For example, I am programming a script that makes html pages, but I do
not have the ability to change the "Content-Type .. charset=.." line
that is sent preceeding those pages.

Jim




More information about the Python-list mailing list