mån 2003-01-27 klockan 22.38 skrev Pawel J. Maczewski:
> Hi all,
>   As I'm developing an application in polish language, I need to have all 
> the texts in polish. Under Linux I used ISO-8859-2 coding foe central 
> european characters, but they seem to look something strange under 
> windows... 
>   So, I was thinking about coding the ce-chars in UNICODE. And I wonder if 
> they would be correctly displayed under both systems? 

Try:

utf8string = unicode(some_string, 'iso-8859-2').encode('UTF-8')

Eg, you need to first create a unicode object (from an encoding) and
then encode it to a UTF-8 object which can be used in Gtk+2 for
instance.

-- 
Johan Dahlin <[EMAIL PROTECTED]>
Async Open Source

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to