boa & unicode : sitecustomize.py not read

spir <[email protected]>
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.