PHP iconv破绽

WBOY
WBOYOriginal
2016-06-13 13:14:12910browse

PHP iconv漏洞

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

所以最好用mb_convert_encoding

Statement:
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