iconv 行不行?不过安装PHP的时候要编译进去。

解决方案 »

  1.   

    请问怎样把iconv编译进去?是重新编译内核还是制定一个库,具体怎样做,能不能说详细些,我刚学着用php,这些都不熟
      

  2.   

    安装
    To use functions provided by this module, the PHP binary must be built with the following configure line: --with-iconv[=DIR]. Note to Windows(R) Users: In order to enable this module on a Windows(R) environment, you need to put a DLL file named iconv.dll or iconv-1.3.dll (prior to 4.2.1) which is bundled with the PHP/Win32 binary package into a directory specified by the PATH environment variable or one of the system directories of your Windows(R) installation. This module is part of PHP as of PHP 5 thus iconv.dll and php_iconv.dll is not needed anymore. 
      

  3.   

    php.ini
    extension_dir = "C:\php\extensions"
    extension=php_iconv.dllcopy iconv.dll 到system32目录下
      

  4.   

    各位大侠,能不能用对照表给我写个函数阿?我的程序要在服务器上运行,最好不改那些设置。谁能帮我写个,发到,我的msn和邮箱都是这个。
      

  5.   

    回复人:bingofei(bingo) ( 四级(中级)) 信誉:96  2005-10-19 10:31:00  得分:0

    试试看utf8_decode()
    =========
    utf8_decode肯定不行的。
      

  6.   

    一个字符转换的源文件,超好用。注:并不是我写的,网上下的。下载地址:
    http://www.cnblogs.com/Files/coolstr/chinese.zip
      

  7.   

    先用phpinfo()看看你的服务器是否支持iconv或者mbstring
    现在很多都支持了
      

  8.   

    谢谢了,问题解决了,用的coolstr(占卜師oοΟ)给我的源文件,确实很好用,马上给分,再次感谢各位!