<?php
mb_convert_encoding() 该函数会根据内容自动识别编码,但是执行效率比iconv差;
$content = mb_convert_encoding($content, "utf-8", "gb2312");
$content = iconv("utf-8", "gb2312//IGNORE", $content); //utf-8转gbk
$content = iconv("gb2312", "utf-8//IGNORE", $content); //gb2312换为utf-8
?>管理员回复
全部回复 (10)
-
tjlger 2020-5-72楼 -
123123123qqcom 2020-5-73楼 -
Gavin_Yuen 2020-5-74楼 -
行者瓦工 2020-5-75楼 -
chery 2020-5-76楼 -
no7tool 2020-6-27楼 -
橡木 2020-6-38楼 -
kehebiao 2020-6-59楼 -
tink 2020-6-1810楼 -
codfans163com 2020-6-1811楼







