Donnerstag, September 21, 2006

通过iconv函数进行字符转换, 非常简单!

function gb2utf($string) {
$out = iconv( "gb2312", "UTF-8" , $string);
return $out;
}

$newwords = gb2utf($cn);

echo "$newwords";

Keine Kommentare: