Unicode error: ASCII encoding error. Ordinal not in range(128) ???

v.wehren v.wehren at home.nl
Tue Jan 7 21:49:22 CET 2003


If your writing characters beyond the 7 bit ASCII character set  (such as
German characters with *Umlaute*), you have to encode your strings (e.g.
fw.write(mystring.encode("latin_1")).

Regards

Vincent Wehren



"Thomas Weholt" <2002 at weholt.org> schrieb im Newsbeitrag
news:%WFS9.8062$CG6.157588 at news4.e.nsc.no...
> I'm working with RSS/RDF-feeds and get the above mentioned error. How can
I
> detect and/or avoid this error, when parsing/working with strings??
>
> Thomas
>
>






More information about the Python-list mailing list