在 utf-8 编码的文件下
运行下面代码..
发现转换后的汉字只有 "好不"
怎么样转换才能完全转换出来咧?
高人来帮帮忙呀..<?php
echo '<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />';
$str = '好不醜好麼a麼';
echo iconv("UTF-8","gb2312",$str); //好不
?>
运行下面代码..
发现转换后的汉字只有 "好不"
怎么样转换才能完全转换出来咧?
高人来帮帮忙呀..<?php
echo '<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />';
$str = '好不醜好麼a麼';
echo iconv("UTF-8","gb2312",$str); //好不
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货