网站分类

站点统计

网站收藏

友情链接

图标汇集

多拉的博客

多拉与您分享欢乐~

PHP中GBK和UTF8得转码

用函数mb_convert_encoding()

要在PHP4.0.6以上才有

GBK To UTF-8
< ?php
header("content-Type: text/html; charset=Utf-8");
echo mb_convert_encoding("妳係我的友仔", "UTF-8", "GBK");
?>

GB2312 To Big5
< ?php
header("content-Type: text/html; charset=big5");
echo mb_convert_encoding("你是我的朋友", "big5", "GB2312");
?>

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-Blog 1.8 Devo Build 80201

Copyright 2007-2008 duolaa.org. Some Rights Reserved.

最新评论及回复

最近引用

最近发表

日历

Search

文章归档