PHP函数iconv()编码转换<br />
<br />
<?php <br />
function gbk2utf($string) { <br />
$out = iconv( "gb2312", "UTF-8" , $string); <br />
return $out; <br />
} <br />
<br />
function utf2gbk($string) { <br />
$out = iconv( "UTF-8", "gb2312" , $string); <br />
return $out; <br />
}?><br />