Ubunu - Linux - Unicode - encoding
Franz Steinhaeusler
franz.steinhaeusler at gmx.at
Thu Feb 1 00:05:17 PST 2007
On Thu, 1 Feb 2007 15:59:01 +0800, limodou <limodou at gmail.com> wrote:
>On 2/1/07, Franz Steinhaeusler <franz.steinhaeusler at gmx.at> wrote:
>> On Thu, 1 Feb 2007 15:40:05 +0800, limodou <limodou at gmail.com> wrote:
>>
>> >If you can get correct filename, try:
>> >
>> > >>> a=u'i\xdc\xfc\xe4k.txt'
>> > >>> file(a)
>> > <open file u'i\xdc\xfc\xe4k.txt', mode 'r' at 0x00E54530>
>>
>> Hi limodou,
>>
>> I want to display the file name in a list, you perhaps now, Dan from DrPython
>> has created a user written file open dialog, and this files cannot be displayed.
>>
>If you use unicode I think it'll ok. for example:
>
>import os
>os.listdir(u'.')
>
>if the path is unicode, then python will return files encoded in
>unicode. so you should use unicode version of wxPython to show the
>list I think.
Thanks, I will try this out.
Not directly related, but I would be intersted, if you try your ulipad,
create on a windows xp partition a file for example äöü.txt (latin-1 or cp1252),
can ulipad show this file on linux correctly in your file open dialog?
Do you have otherwise a function or plugin dealing with showing filenames
in wxpython self? This would be very interesting for me! :)
--
Franz Steinhaeusler
More information about the wxpython-users
mailing list