apt-get install emma
utf8调整
edit ~/.emma/emmarc
change db_encoding=latin1 to:
db_encoding=utf8
edit /usr/share/emma/emmalib/__init__.py
change "db_encoding": "latin1" to:
"db_encoding": "utf8"
edit /usr/share/emma/emmalib/mysql_host.py
edit function _use_db:
if do_query:
self.query("use `%s`" % name, False)
self.query("set names utf8", False)

本文介绍如何将Emma应用程序的数据库编码从latin1转换为UTF-8,涉及.emmarc配置文件、__init__.py模块及mysql_host.py中use_db函数的修改步骤。
3298

被折叠的 条评论
为什么被折叠?



