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.");
<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
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.");
<?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
扩展哪一个?
Windows系统下面还需要安装什么?
Unknown():Unable to load dynamic library 'D:\APACHE\bin\extensions\php_iconv.dll' - 找不到指定的模块。
但是我能确认'D:\APACHE\bin\extensions\php_iconv.dll' 已经存在并且路径正确!为什么啊,谢谢!!
里的php_iconv.dll复制过去
http://www.zahuopu.com/blog/post/1/316
echo iconv("UTF-8","GB2312","四川建华");为什么察看源码的时候还是四川建华
呢?谢谢