iconv("UTF-8","gb2312","将UTF-8装换成gb312")
解决方案 »
- php 按符号截取中文字符串,gb2312不乱码
- 今天去面试PHP程序员:服务器CPU资源占用不多,但网站打开速度慢,请分析原因?
- php跨表查询问题
- 我用phpmyadmin来管理mysql,建好的数据库位置可以改吗。
- 找一个成都的朋友做一个导航程序,php+sql搭建
- 够电影网站代码
- 呵呵,我是搞Java的,第一天尝试php,提个小问题:php有没有类似jsp那样的ide开发环境呢(Eclipse、Jbuilder)?
- 谁能帮忙写个正则:(
- apache/php 如何使目录下的.inc文件不可见
- 如何php+mysql实现身份验证(散高分。。。。)
- PHP中换行符无效,MySQL中查看表结构出错.....
- 用php做的文件下载的问题
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","四川建华");为什么察看源码的时候还是四川建华
呢?谢谢