[wxPython-users] GenericDirCtrl, Unicode Folders and non-unicode
build
Robin Dunn
robin at alldunn.com
Thu Dec 14 17:56:48 PST 2006
Donn Ingle wrote:
> Hello again,
> On my unicodification trail, I am wondering what a non-unicode build of
> wxPython would do if a Generic Dir Control has to draw (in the tree) some
> folders (or files) that are unicode strings?
> Will it raise an error, ignore the non-ansi chars or display the '?' sign?
My guess is that it will just assume that the bytes that it reads from
the file system are in the same encoding it is using by default and will
display them as such.
>
> I gather, from the wiki, that a non-unicode build will decode any unicode
> parameters into byte strings (via default encoding) and any strings coming
> out of a widget will also be strings.
Yes, but that is only things going to/from python and wx methods.
Things done internally (like wx.GenericDirCtrl reading the filesystem)
may follow their own rules, like trying to use the system's filesystem
encoding, or just ignoring it...
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list