首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

MySQL 5.0.16乱码问题处理办法

整理日期:2007年06月14日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-06/1181852515.html

ENGINE=MyISAM DEFAULT CHARSET=gbk;
ENGINE=InnoDB DEFAULT CHARSET=gbk AUTO_INCREMENT=40 ;

4 检查表结构中

varchar(100) 的整理属性为gbk_chinese_ci
其它类型的整理属性为空

5 代码中加上

$db->query("SET CHARACTER SET GBK"); Linux下需要,Windows下不需要这个相当于Connection Character Sets and Collations
Tags:
MySQL 5.0.16乱码问题处理办法
'http://www.etoow.com/html/2007-06/1181852515.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved