[wxPython-users] Re: Ubunu - Linux - Unicode - encoding

limodou limodou at gmail.com
Thu Feb 1 00:23:32 PST 2007


> 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! :)
>

For filename, I did nothing, and I only use wxPython to open a file.
So it's not problem as long as wxPython can find it.

And if you said what about the file content, ulipad can auto detect
utf-8 encoding, if it failed, it'll use locale.getdefaultlocale() to
get the default locale encoding, if the local encoding still
none-exist, it'll use sys.getfilesystemencoding. But if the detected
encoding is not same as file encoding, ulipad will fail to open the
file. But it support custom encoding selection, so you can try to
specify the encoding name, then try to open the file.

-- 
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou




More information about the wxpython-users mailing list