你在mysql>show variables like "%char%";    mysql>show variables like "%coll%";能看到你的mysql字符集设置,设置都改成big5试试
如:
SET character_set_client = big5
SET character_set_connection = big5
SET character_set_database = big5
SET character_set_results = big5
SET character_set_server = big5SET collation_connection = big5
SET collation_database = big5
SET collation_server = big5
如果还不成,那你看下你已经建的数据库、数据表、字段的字符设置是什么,然后按同样方法改过来

解决方案 »

  1.   

    你在mysql>show variables like "%char%";    mysql>show variables like "%coll%";能看到你的mysql字符集设置,设置都改成big5试试不行,看不到
      

  2.   

    mysql>SET character_set_client = big5
    ...
    .
    .
      

  3.   

    用set语句将
    collation_connection 
    character_set_results 
    值改成gb2312就可以了注意的地方就是有全局和会话的区别详细的用法在
    http://dev.mysql.com/doc/mysql/en/SET_OPTION.html
    变量名在
    http://dev.mysql.com/doc/mysql/en/Dynamic_System_Variables.html
      

  4.   

    将那一堆set命令当sql语句运行一遍就可以了
      

  5.   

    你在每次运行sql语句之前,都把set运行一遍就行,在代码中加上运行set这些语句,那样每一次都设置了
      

  6.   

    每次查询前先运行"set character_set_results=big5"
      

  7.   

    mysql 4.0.21-win用show variables like "%char%";
    不能够看到那么多的变量包括“character_set_results” 
    请问:可以运行set character_set_results=big5命令吗?