来源:自学PHP网 时间:2015-04-16 10:51 作者: 阅读:次
[导读] 1,查看自己安装的mysql的编码2、查看Mysql支持的编码3、查看数据库编码4、查看数据表编码(show create table user G;)5、修改my ini文件来修改编码:加上default-character-set=字符集(ut...
1,查看自己安装的mysql的编码 2、查看Mysql支持的编码 3、查看数据库编码 4、查看数据表编码(show create table user \G;) 5、修改my.ini文件来修改编码:加上default-character-set=字符集(utf8.gbk.gb2312等) 6、命令行修改:alter database da_name default character set "charset' ;或 set names 'charset';或alter database testdb character set utf8; 8、查看数据库服务和客户端字符集: 9、Linux系统下的修改:<喎"http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+PC9wPgo8cD4xKbW8s/bK/b7dPGJyPgpbcm9vdEB3d3cuY25zY24ub3JnIH5dJCBteXNxbGR1bXAgLXUgcm9vdCAtcCBkYm5hbWUgLS1kZWZhdWx0LWNoYXJhY3Rlci1zZXQ9Z2JrICZndDsgYmFzZV91c2VyLnNxbDs8L3A+CjxwPjIpsum/tLW8s/a1xHNxbM7EvP61xLHgwus8YnI+Cltyb290QHd3dy5jbnNjbi5vcmcgfl0kIGZpbGUgYmFzZV91c2VyLnNxbCA8YnI+CqGhIGJhc2VfdXNlci5zcWw6IFVURi04IFVuaWNvZGUgdGV4dCwgd2l0aCB2ZXJ5IGxvbmcgbGluZXM8L3A+CjxwPjMp16qzydKq08O1xLHgwus8YnI+Cltyb290QHd3dy5jbnNjbi5vcmcgfl0kIGljb252IC1mIHV0Zi04IC10IGdiayBiYXNlX3VzZXIuc3FsICZndDtiYXNlX3VzZXJfZ2JrLnNxbDwvcD4KPHA+NCnBrL3Tyv2+3b/isqKy6b+0tbHHsL/itcSx4MLrPGJyPgpbcm9vdEB3d3cuY25zY24ub3JnIH5dJCBteXNxbCAtdXJvb3Q8YnI+CqGhbXlzcWwmZ3Q7IHVzZSB0ZXN0ZGI7PC9wPgo8cD5teXNxbCZndDsgc3RhdHVzOzxicj4KICAgIFNlcnZlciBjaGFyYWN0ZXJzZXQ6ICAgIGxhdGluMTxicj4KICAgIERiICAgICBjaGFyYWN0ZXJzZXQ6ICAgIGdiazxicj4KICAgIENsaWVudCBjaGFyYWN0ZXJzZXQ6ICAgIGxhdGluMTxicj4KICAgIENvbm4uIGNoYXJhY3RlcnNldDogICAgbGF0aW4xPC9wPgo8cD41Kcno1sOzydDo0qq1xLHgwus8YnI+Cm15c3FsJmd0O3NldCBuYW1lcyA="gbk'; 6)查看现在的编码 7)导入我们转换成gbk后的文件 |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com