[PyQt] unicode and pyqt4

Jean-Claude Repetto jcrml2 at mxm.eu
Wed Nov 24 16:52:05 GMT 2010


Le 24/11/2010 17:40, Janwillem van Dijk a écrit :
> On 11/24/2010 10:04 AM, Yao Ko wrote:

> The traceback.print_exc gives:
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in
> position 1: ordinal not in range(128)
> print u'\xe4' correctly shows the German a-umlaut

'\xe4' is not Unicode, it is ISO8859-1.


More information about the PyQt mailing list