运行:SHOWVARIABLESLIKE'character_set_%';character_set_clientutf8character_set_connectionutf8character_set_databaseutf8character_set_filesystembinarycharacter_set_resultsu...
运行:SHOW VARIABLES LIKE 'character_set_%';
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server latin1
character_set_system utf8
character_sets_dir /usr/local/share/mysql/charsets/
运行SHOW VARIABLES LIKE 'collation_%';
Variable_name Value
collation_connection utf8_general_ci
collation_database utf8_general_ci
collation_server utf8_general_ci
服务器不支持GBK和GB2312,只支持UTF8
用PHP编码可以正常显示,但用ASP中文字符总是显示乱码,连接串中也加上了stmt=set names utf8
代码中也加了下面的代码:
页面也存为了UTF-8格式,但仍然不能正常显示中文字符,请高手帮下忙,如果解决,再追加50分!
回答者:就这样能解决还用得着到这儿来提问么?
通过反复测试,发现是MYSQL-ODBC的问题,自己解决了。
展开