UTF-8 usage in Python 2.0

Fredrik Lundh effbot at telia.com
Sat Oct 28 04:46:16 EDT 2000


François Granger wrote:
> I looked throught the new features of Python 2 but I did not found an
> easy way to do something similar to what I did with this 8859
> modification.

# macroman to latin1
outdata = unicode(data, "macroman").encode("latin1")

I've-never-met-macro-man-ly yrs /F





More information about the Python-list mailing list