汉字zip 文件导致 web模块异常
- 
有人 报错 Couldn't load module web 
 2014-01-16 06:55:22,284 1052 CRITICAL ? openerp.modules.module: 'ascii' codec can't decode byte 0xe6 in position 4: ordinal not in range(128)
 2014-01-16 06:55:22,285 1052 ERROR ? openerp.service: Failed to load server-wide moduleweb.
 Thewebmodule is provided by the addons found in theopenerp-webproject.
 Maybe you forgot to add those addons in your addons_path configuration.
 Traceback (most recent call last):
 File "/Users/huzh/Documents/work/openerp7/openerp/service/init.py", line 60, in load_server_wide_modules
 openerp.modules.module.load_openerp_module(m)
 File "/Users/huzh/Documents/work/openerp7/openerp/modules/module.py", line 415, in load_openerp_module
 getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
 File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 628, in wsgi_postload
 openerp.wsgi.register_wsgi_handler(Root())
 File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 517, in init
 self.load_addons()
 File "/Users/huzh/Documents/work/openerp7/openerp/addons/web/http.py", line 573, in load_addons
 manifest_path = os.path.join(addons_path, module, 'openerp.py')
 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 71, in join
 path += '/' + b
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 4: ordinal not in range(128)
 2014-01-16 06:55:22,326 1052 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
 2014-01-16 06:55:22,327 1052 INFO ? openerp: OpenERP server is running, waiting for connections...
 之前 没注意啥问题,,有次,不小心在addons 目录弄个 带汉字的zip 文件 如“abc汉字.zip” 源码运行 就报上述错误,
 删除 该 文件,,系统正常
 提示:有时候提示,,会走入误区,,,想想之前干了啥,看提示,web 模块错误,再看前一段,,, 'ascii' codec can't decode byte 0xe6 in position 4: o
 解决了问题,再重现问题,发现,人家提示也是对的,,,编码错误。。。导致web模块错误!
