Totally confused by Python's string thing.

David Eppstein eppstein at ics.uci.edu
Tue Dec 17 03:16:11 EST 2002


In article <Pine.SOL.4.44.0212170812480.9572-100000 at atta.ifi.uio.no>,
 Doru-Catalin Togea <doru-cat at ifi.uio.no> wrote:

> I have latin-1 input and ASCII-compliant output, as part of the processing
> is to replace all non-english characters with their &???;
> encodings. So I don't really care what encoding the output will actually
> have, as long as it is universally understood by web-browsers. My problems
> occured while processing the latin-1 input, usually when trying to write
> to files, or when debugging with "print" (which I know now to only handle
> ASCII characters).

It sounds like you want this:
http://groups.google.com/groups?selm=m3k7yr9wci.fsf@gondolin.beleriand

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list