StupidBeauty
Read times:338Posted at:Sun Apr 1 04:24:37 2012
- no title specified

今天碰到的一种MySQL乱码情况

今天在建立一个数据库时,选择咯默认的字符集“latin1”。

后来需要输入中文,看到乱码才想起数据库服务器里没改字符集。于是将对应的数据库和数据表的字符集都改成“utf8”。一试,数据表中的字符串字段还是乱码,输入新的内容也是乱码。后来再做试验,在同一数据表里增加新的字段,再在新的字段里输入中文则不会乱码。

不知道是什么原因,仅记录这个现象。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4