Home > Backend Development > PHP Tutorial > PHP iconv破绽

PHP iconv破绽

WBOY
Release: 2016-06-13 13:14:12
Original
916 people have browsed it

PHP iconv漏洞

最近在做一个项目,用iconv转化UTF-8为GB2312时老是少转几千字。后来上网一查才发现iconv在遇到“-”时后面的字节就不转了直接丢了。

所以最好用mb_convert_encoding

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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template