Htmlizing text

Fredrik Lundh fredrik at pythonware.com
Tue Nov 30 08:59:23 EST 1999


I wrote:

> Gerrit Holl <gerrit.holl at pobox.com> wrote:
> > By the way, why doesn't the cgi module does this?
> 
> if you use ISO Latin 1 for your pages (which happens to
> be default in HTTP/1.1, HTML 3.0, and real life), you
> don't really have to quote all possible entities just be-
> cause you can...

and yes, your code assumes that the original string
always uses ISO Latin 1.  the cgi version works fine
with plain ASCII, and *any* 8-bit ISO encoding.

</F>





More information about the Python-list mailing list