iconv("UTF-8","gb2312","将UTF-8装换成gb312")

解决方案 »

  1.   

    Description
    string iconv ( string in_charset, string out_charset, string str)
    It converts the string str encoded in in_charset to the string encoded in out_charset. It returns the converted string or FALSE, if it fails. 例子 1. iconv() example:echo iconv("ISO-8859-1","UTF-8","This is a test.");
     
     
      

  2.   

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=GB2312">
    <?php
    echo iconv("ISO-8859-1","UTF-8","This is a test.");
    Fatal error: Call to undefined function: iconv() in F:\CodeBase\PSCode\MiPro\t.php on line 3
      

  3.   

    windows下也可以使用吗?
    扩展哪一个?
      

  4.   

    提示找不到指定的模块,
    Windows系统下面还需要安装什么?
      

  5.   

    php.ini,把php_iconv(好象是)前的;号去掉,再把c:/php/dll目录下的所有文件拷到windows/system32目录下
      

  6.   

    错误提示
    Unknown():Unable to load dynamic library 'D:\APACHE\bin\extensions\php_iconv.dll' - 找不到指定的模块。
    但是我能确认'D:\APACHE\bin\extensions\php_iconv.dll' 已经存在并且路径正确!为什么啊,谢谢!!
      

  7.   

    把PHP/ext(好象是这样)
    里的php_iconv.dll复制过去
      

  8.   

    在这里找到了解决办法
    http://www.zahuopu.com/blog/post/1/316
      

  9.   


    echo iconv("UTF-8","GB2312","&#22235&#24029&#24314&#21326");为什么察看源码的时候还是&#22235&#24029&#24314&#21326
    呢?谢谢