作者coldollsheep (加油加油^^)
看板Database
标题Re: [问题] MySQL无法显示中文
时间Tue Jun 23 07:47:56 2009
大大们好
回这篇的用意是因为我的问题跟这是类似的
我用PHPMYADMIN都OK 显示中文都OK
但是在我的MYSQL命令提示字元的画面之下
原本在PHPMYADMIN输入的中文顿时成了乱码
而自己在命令提示字元的之下 输入的中文会变成没有东西 看起来是空白
原PO的问题似乎是在当初设置资料库或是安装MYSQL的时候没有选择UTF8
但是我有
建立资料库的时候 我也有预设
先给大大看一下我资料库的状况
->show variables like 'c%';
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 C:\Program Files\MySQL\MySQL Server 5.1\share\charsets\
collation_connection utf8_general_ci
collation_database utf8_general_ci
collation_server utf8_general_ci
completion_type 0
concurrent_insert 1
connect_timeout 10
------------
此外有大大提到 要去修改my.ini这个档
怕是里面依旧是latin1 但是我打开来看是这样
[mysql]
default-character-set=utf8
# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=utf8
也就是说没有地方是latin1
-------------------------------
但是我依旧是在命令提示字元输入不了中文
而别处输入的中文看起来是乱码
请各位帮个忙 感谢 或是需要什麽讯息请告知 感恩
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.161.174.38
1F:推 roga:set names = utf8 06/23 13:57
2F:推 aleelyle:那是命令提示字元的问题 你那边也要设 06/23 23:19