ascii to latin1

Peter Otten __peter__ at web.de
Tue May 9 16:27:06 EDT 2006


Luis P. Mendes wrote:

> The script converted the ÇÃ from the first line, but not the º from the
> second one.  Still in *, I also don't get a list as [115448,DAÇÃO] but a
> [u'115448,DAÇÃO'] element, which doesn't suit my needs.
> 
> Would you mind telling me what should I change?

Sometimes you are faster if you put the gloves off. Just write the
translation table with the desired substitute for every non-ascii character
in the latin1 charset by hand and be done.

Cyril Kyree





More information about the Python-list mailing list