首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

rhel6.1下OpenERP出现的有关问题

2012-07-16 
rhel6.1下OpenERP出现的问题1. UnicodeDecodeError: ascii codec cant decode byte 0xe9 inposition 0

rhel6.1下OpenERP出现的问题
1. "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in
   position 0: ordinal not in range(128)"
   解决方法:
   $ vim /home/tony/OpenERP/openerp-server/bin/netsvc.py
   添加如下代码:
  

    import sys    default_encoding='utf-8'    if sys.getdefaultencoding!=default_encoding:        reload(sys)        sys.setdefaultencoding(default_encoding)   

热点排行