php把utf8转换为gbk,php把gbk转utf8
php把utf8转换为gbk
查看代码打印
<?php
header("Content-type:text/html;charset=UTF-8");
echo $str= '你好,这里是卖咖啡!';
echo '<br />';
echo iconv("UTF-8","gbk//TRANSLIT",$str); //将字符串的编码从UTF-8转到GB2312
php把gbk转换为utf8
查看代码打印
<?php
header("Content-type:text/html;charset=GB2312");
echo $str= '你好,这里是卖咖啡!';
echo '<br />';
echo iconv('GB2312', 'UTF-8', $str); //将字符串的编码从GB2312转到UTF-8
相关推荐
wwwsurfphpseocom 2020-10-28
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23