首頁

2011年7月7日 星期四

php big5跟utf-8互轉的指令

php big5跟utf-8互轉的指令
big5 轉 utf-8
PHP 程式碼:
$str=iconv("big5","UTF-8",$str);

utf-8 轉 big5
PHP 程式碼:
$str=iconv("UTF-8","big5",$str);

沒有留言:

張貼留言