Re: [問題]抓取 utf8網頁

看板Perl作者 (相見不如懷念)時間17年前 (2007/11/27 00:20), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
※ 引述《tumc (HIHIHI)》之銘言: : 請問一下, : 如何才能把抓下來的utf8網頁, : 轉變成big5的格式, : 直接用utf8存成文字檔都是亂碼 #!/usr/bin/perl use Encode qw/encode decode/; use LWP::Simple; my $html = get 'http://www.kkbox.com.tw/'; print encode("Big5", decode("utf-8", $html)); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.71.40
文章代碼(AID): #17Il8r0Y (Perl)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 2 之 3 篇):
文章代碼(AID): #17Il8r0Y (Perl)