http://www.qtol.net/forum/forumcontent.php?postid=489&forumid=4

解决方案 »

  1.   

    加载 iconv 扩展
    $str = iconv("UTF-8","GB2312",$str);
      

  2.   

    iconv
    (PHP 4 >= 4.0.5)iconv -- Convert string to requested character encoding
    Description
    string iconv ( string in_charset, string out_charset, string str)
    It converts the string string encoded in in_charset to the string encoded in out_charset. It returns the converted string or FALSE, if it fails. Example 1. iconv() example:echo iconv("ISO-8859-1","UTF-8","This is test.");