Hi!
First off, some praise for wxPython -- the code I've been writing in the last few weeks has been fun and moving right along. Cross platform UI development is fun for a change!
On to my questions -- I am the creator of MusicBrainz (http://musicbrainz.org) and I am writing a cross platform music tagging application similar to the MusicBrainz Tagger as part of my grant work for the Helix Community project. (http://musicbrainz.helixcommunity.org)
This application retrieves music metadata from the server which speaks nothing but UTF-8 and if at all possible I would like have the entire tagging application use nothing but Unicode end-to-end. Upon studying up on the Unicode issues with this, I've come to realize that wxWidgets/wxPython can either be built Unicode or er, not. I have the feeling that I cannot force my users to install the unicode version (especially if they already have the non-unicode wxWidgets installed). Thus I think it would be most advantageous to write my application to use the same encoding that wxWidgets is using.
Q1: How do I determine what that encoding is? If it is not Unicode, will it be 8859-1 or are other encodings possible?
On my Debian box I've got the non-unicode version of wxPython installed and it throws an exception every-time I try to pass non-ascii characters to one of the wxPython widgets. Setting my default encoding to 8859-1 using a sitecustomize.py improves this a lot. However, in my deployed application I don't want to force the user to install this file -- its both a pain in the rear as well as against my religious beliefs with respect to installing applications on an end user's machine.
Q2: Are there any drawbacks to setting sitecustomize.py this site wise?
I tried putting sitecustomize.py into the same dir as the main wxPython application, but python ignores this, presumably since the python path doesn't include . by default. And since the default encoding needs to be set before python is fully initialized, this becomes a bit challenging to set the encoding for just one application. I assume that some sort of wrapper script that modifies the the path and then executes the real application is necessary.
Q3: Do I need to create a wrapper script to change the default encoding for just one application? If so, do you have any tips on how to do this, and if not, how can I accomplish this?
Thanks for any tips you might have!
···
--
--ruaok Somewhere in Texas a village is missing its idiot.
Robert Kaye -- rob@eorbit.net -- http://mayhem-chaos.net