摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ut 阅读全文
posted @ 2013-03-06 21:13 我叫龙弟弟 阅读(204) 评论(0) 推荐(0)
摘要: inconv()函数:范例:inconv('GB2312','UTF-8',$str);//将字符串的编码由gb2312转换为utf-8inconv_substr($str,1,1,'UTF-8');//按字符个数截取而非字节$code =inconv_get_encoding();//获取当前页面编码信息iconv_strlen($str,'UTF-8');//得到设定编码的字符串长度mb_convert_encoding()函数:范例:$str = mb_convert_encoding($str,'utf-8' 阅读全文
posted @ 2013-03-06 20:45 我叫龙弟弟 阅读(425) 评论(0) 推荐(0)