[maemo-developers] Python - problem with locales

From: David Hautbois david.hautbois at free.fr
Date: Fri Oct 5 23:33:57 EEST 2007
Hi
I have problems to display special characters in the python console 
(With Scratchbox) :
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in 
position 54: ordinal not in range(128)

I think this is because the following command :
locale.getdefaultlocale()
return
(None, None)

I didn't have this issue with maemo 3.1 SDK.

How to solve this issue ?

Thanks

David.

-- 
http://david.hautbois.free.fr
http://slugplayer.free.fr


More information about the maemo-developers mailing list