[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Unicode list and ComboBox.insertStrList()
From:       Timothy Grant <timothy.grant () gmail ! com>
Date:       2005-02-28 22:19:41
Message-ID: e775286d05022814195b6a1ba9 () mail ! gmail ! com
[Download RAW message or body]

I'm trying to populate a ComboBox with a list of strings that *may*
contain odd unicode characters.

insertStrList is trying to do an ascii unicode conversion on each item
in the list and can't. I'd like to set the conversion type to replace,
but don't know how. Should I simply preprocess the list with the
correct conversion/error correction and then use the preprocessed
list?

self.insertStrList([ item for item in
music_library.__dict__[name].keys() if item ])
UnicodeEncodeError: 'ascii' codec can't encode character '\uf1' in
position 4: ordinal not in range(128)

Thanks for your help.

-- 
Stand Fast,
    tjg.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic