2014年10月27日 星期一

將繁體中文 charset = utf-8 的網頁,parsing後,轉為big-5 存文字檔

use Encode;

$text = decode("utf8",$text);
$text = encode("big5",$text);

之後FTP到Windows OS,office 才不會看到亂碼

沒有留言:

張貼留言