Re: [Boa Constr] boa & unicode : sitecustomize.py not read
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2008-09-30 13:26:15
|
Denis, spir wrote: > Thank you for your help, Werner. > I work on windows with last versions installed I guess : > * win XP SP3 > * python 2.5.2 > * wxPython 2.8.81 > * boa 0.6.1 > > Actually, you're right, I use the exe version of boa, which explains > why sitecustomize.py does not work. I should have noted that myself... > Still, the strange thing is : I just installed ACtiveState's > ActivePython instead of the standard Cpython. And *now*, boa works > perfectly with unicode, both when opening and running a file. wxPython > modules such as the file dialog, too (before I had warnings at each > directory change, even if there are only plain ascii file and > directory names). No idea, I thought that ActivePython is just a "packaged" up Cpython with some other modules, but as they are always lagging a bit behind I prefer to get the packages/modules I need and to upgrade them when it fits into my plans. > > I would really enjoy understanding. Does it mean that ActivePython is > internally built using unicode ? And written in order to be able to > parse unicode source files ? If it uses utf-8, then ascii users would > not even notice it (characters < 128 still coded on a single byte). > Anyway, this fact shows that I still don't get fully the way python > copes with non-ascii stuff. I don't mean non-ascii data, or the > unicode type of strings, but the encoding of the source code itself. You might want to search with Google there are lots of references/posts/wiki pages out there. It is still a mystery to me, also I think I have my application converted over to Unicode, actually utf-8, but still testing. > > greetings, denis > > PS : Do you know about a programming language in which variable and > object _names_ can be non-ascii ? I think in the XXIth century this > should be possible ;-) You probably could today with Python, also it might be a lot easier with Python 3x as I believe it will be handling Unicode "natively", i.e. it will be the default and no longer ascii. I am a native German speaker but all the code in my app uses English for all objects etc etc, and I then use gettext to translate all the user visible stuff into German and French. Werner |