unicode for beginners
Peter Otten
__peter__ at web.de
Thu Mar 26 17:30:33 EDT 2009
WallyDD wrote:
> I have something of a csv file which has somehow been converted into
> something that looks like this;
> " FOZ DE IGUAZ\u00da" and " R\u00cdO DE JANEIRO"
>
> Is there a simple way to convert this into something a little bit
> readable?
>
> Is there a simple command in python to convert this?
>>> print "R\u00cdO DE JANEIRO".decode("unicode-escape")
RÍO DE JANEIRO
Peter
More information about the Python-list
mailing list