看板 Perl 關於我們 聯絡資訊
請問一下使用 LWP::Simple get() function 傳回的繁體中文內容是亂碼 該如何解決? 嘗試用encode function 似乎也沒辦法 use Encode; $content = get $url; $data = encode("Big5", $content); 不知道這樣是什麼問題呢? htm 網頁打開是繁體的, 用 google chrome 檢視原始碼也可以看到正常的繁體字 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.160.185.234 ※ 文章網址: https://www.ptt.cc/bbs/Perl/M.1488871812.A.DD3.html
cutekid: url 是什麼,如果知道的話可以幫你測一下 03/08 00:08
flu: 一般不是使用decode()後才內部處理嗎 03/08 01:01
herculus6502: 推樓上decode 03/09 18:18