opencart 一个不错的电商开源框架,一个小问题opencart 商品说明乱码
简单看了一下源码,
在opencart\catalog\controller\product\category.php 中
找到
修改一下就OK了
windows 下 开发 确保PHP.INI 的 extension=php_mbstring.dll 是可用的
简单看了一下源码,
在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') . '..',