[Boa Constr] boa & unicode : sitecustomize.py not read
Status: Beta
Brought to you by:
riaan
From: spir <den...@fr...> - 2008-09-29 09:02:51
|
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 |