You can use mb_convert_encoding(). But it need you open mbstring extension in php.ini.

解决方案 »

  1.   

    首先保证你的iconv类库可用
    加载php的iconv模块
    http://www.eb163.com/blog/blog.php?blogid=3
    或者试试我以前的方法
    iconv("utf-8","cp936",$_POST["Notes"])
      

  2.   

    可能是你的中文里包含了一些字符集以外的函数,试一下加参数iconv("utf-8","GBK//IGNORE",$_POST["Notes"])或iconv("utf-8","GBK//TRANSLIT",$_POST["Notes"])
      

  3.   

    1、确认iconv函数可用
    2、确认传递过来的是utf-8编码的数据如果 $_POST["Notes"] 是utf-8编码的,那么表单页就是utf-8编码的
    而你在返回页又使用gb2123编码,这不是自找麻烦吗?