Re: [Boa Constr] boa & unicode : sitecustomize.py not read
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2008-09-29 12:39:57
|
Hi Denis, You are probably using the exe version of Boa, that means that everything is compiled into the exe and no external py files like sitecustomize.py are run. You can still set the default encoding via the command-line switch -U, e.g. Boa.exe -U utf-8 But as the exe version uses the ascii version of wxPython it may still give issues. I suggest you use the source version of Boa. Cheers, Riaan. 2008/9/29 spir <den...@fr...>: > Hello, > > I read in the doc that, in order to use unicode with boa, one should add > a sitecustomize.py module with a setdefaultencoding("utf-8") > instruction, either to the python directory, or to the Lib/site-packages > one, or to the boa directory. I choose the last solution in order not to > disturb other modules. > Note that my source files always start with "# -*- coding:utf-8 -*-". > But it does not work. Actually, sitecustomize.py is not even read, there > is no .pyc file generated. When I try to open a source file with > non-ascii chars, I get the usual ascii codec error, for instance: > "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position > 27: ordinal not in range(128)" (Oxe9 is the code for 'é'). > Copying sitecustomize.py to the python directory does not solve the > problem. In fact, this kind of error messages even constantly happens in > the boa file-open dialog, even though my directory and file names don't > hold any non-ascii character. > > Thank you for help, > Denis > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > |