Help: python unicode
maillist.tom at gmail.com
Fri Feb 18 04:40:06 CET 2011
My script can't work.I've changed my defaultencoding from 'ascii' to
'utf-8',but Python also raises a 'UnicodeEncodeError' error.
the error likes this:
>>> s=u'La Pe\xf1a'
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position
And in my script, there're many 'print' statements.So SOS~~~~
what should i do???
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list