ITeye博客

opencart 商品说明乱码

ynial · 2012-09-08 10:50 · php · 编程语言 · Markdown

opencart 一个不错的电商开源框架,一个小问题opencart 商品说明乱码 简单看了一下源码, 在opencart\catalog\controller\product\category.php 中 找到

 'description' => $this->msubstr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) ...', '

修改一下就OK了 windows 下 开发 确保PHP.INI 的 extension=php_mbstring.dll 是可用的


'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100, 'utf-8') . '..',
					

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。