|
环境:
虚拟机linux+apache+mysql+bugzilla
Linux:redhat 9
Mysql-5.0.32
Buzilla-2.20.4
Bugzilla已经汉化成功,选择是utf8编码
my.cnf里对mysqld和clinet都设置了
default-character-set = utf8
在CGI.pm里也设置了utf8,都是按网上流通的那些做法
执行以下命令查看
mysql> show variables like '%character%';
+--------------------------+----------------------------------------+
| Variable_name | Value |
+--------------------------+----------------------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | gbk |
| character_set_system | utf8 |
| character_sets_dir | /usr/local/mysql/share/mysql/charsets/ |
+--------------------------+----------------------------------------+
8 rows in set (0.00 sec)
mysql> show variables like '%collation%';
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database | utf8_general_ci |
| collation_server | gbk_chinese_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)
在mysql中执行set names gbk;可以把数据库里的乱码显示成中文,但是在bugzilla里新建bug的描述和摘要还是乱码,重新建过数据库也不行,重新编译过mysql 也不行。我怀疑是bugzilla读取mysql时出了问题吧,或是需要改动bugzilla连接mysql的脚本,把里面关于字符转换的内容改动,请教,不知怎么办 |
|