- 论坛徽章:
- 0
|
环境是armlinux, mysql5.0
我把my.cnf文件里面服务端和客户端的字符集都设为GB2312了,客户端show variables like '%char%'出来的结果也都显示是
+--------------------------+----------------------------------------+
| Variable_name | Value |
+--------------------------+----------------------------------------+
| character_set_client | gb2312 |
| character_set_connection | gb2312 |
| character_set_database | gb2312 |
| character_set_filesystem | binary |
| character_set_results | gb2312 |
| character_set_server | gb2312 |
| character_set_system | utf8 |
| character_sets_dir | /usr/local/mysql/share/mysql/charsets/ |
+--------------------------+----------------------------------------+
可是我在程序里通过
mysql_get_character_set_info(mysql, &cs);
取得的charset结果仍然是latins,不解.......
我在secureCRT上进mysql客户端,select结果可以显示中文,可是mysql终端下不能输入中文
通过客户端程序select的结果也是????
这个问题困扰了我一个月,请高手们帮帮忙! |
|