zen-cart乱码终极解决方案

2010年03月17日  |  21:04分类:Zen-Cart二次开发  |  标签:  |  1,239 views

网页中产品描述、news等出现乱码问题.
终极解决方案:
      找到路径/includes/languages ,找到这个目录下的english.php文件打开,然后查找CHARSET这个词,找到这段代码define(‘CHARSET’, ‘iso-8859-1′);把iso-8859-1替换成UTF-8,浏览器会自动识别字符编码,公司的所有网站的字符编码默认都是iso-8859-1,而国外的大部分网站,如:雅虎、谷歌、ebay或者一些官网等的字符编码基本都是UTF-8的。

喜欢本文,那就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

发表您的评论

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word