Hi David,

To resolve locale, Python uses LC_ALL, LC_CTYPES, LANG and LANGUAGE in 
this order. SDK3.3 sets LC_ALL=C giving (None,None) as result to 
getdefaultlocale(). SDK2.2 and N800 leaves LC_ALL clean, then if you set 
LANGUAGE everything goes fine. By now you can "unset LC_ALL" to resolve 
this problem.

Regards,
Luciano


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of ext David Hautbois
Sent: Fri 05-Oct-07 17:33
To: [email protected]
Subject: Python - problem with locales
 
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

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to