Home > php教程 > php手册 > ICEcoder显示汉字出现乱码的处理,icecoder乱码

ICEcoder显示汉字出现乱码的处理,icecoder乱码

WBOY
Release: 2016-06-13 08:57:42
Original
1086 people have browsed it

ICEcoder显示汉字出现乱码的处理,icecoder乱码

在网上看到icecoder这个小东西,是一个基于web的编辑器,很不错。唯一的缺点是打开的文件中汉字会变成乱码。

经查看源代码,在lib/file-control.php中,第89行是:

echo '<script>';</script>

原来如此,htmlentities会把汉字变成乱码,换成功能类似的htmlspecialchars:
echo '<script>';</script>

问题解决,暂时没有异常出现。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template