[求助]从网页中向MySQL写入汉字为何变乱码?
MySQL数据库中直接输入汉字,可以正常显示,但是从网页获得中文数据,就变做乱码了.英文与数字都正常.而网页中显示则正好相反(如:数据库正常的则显示乱码,乱码的反而显示正常了)!
MySQL 字符集: UTF-8 Unicode (utf8),建立数据库是的"MySQL 连接校对","整理"都选择的是utf8_general_ci,
服务器变量和设置为以下:
character set client utf8
character set connection utf8
character set database utf8
character set filesystem binary
character set results utf8
character set server utf8
character set system utf8
character sets dir E:\Program Files\MySQL\MySQL Server 5.0\share\charsets\
collation connection utf8_general_ci
collation database utf8_general_ci
collation server utf8_general_ci
请教应该如何解决?
MySQL 字符集: UTF-8 Unicode (utf8),建立数据库是的"MySQL 连接校对","整理"都选择的是utf8_general_ci,
服务器变量和设置为以下:
character set client utf8
character set connection utf8
character set database utf8
character set filesystem binary
character set results utf8
character set server utf8
character set system utf8
character sets dir E:\Program Files\MySQL\MySQL Server 5.0\share\charsets\
collation connection utf8_general_ci
collation database utf8_general_ci
collation server utf8_general_ci
请教应该如何解决?