[PerlChina] 【请教】perl提取网页TXT时候的乱码问题
Beckheng Lam
beckheng at perlchina.org
Fri Apr 13 01:49:01 PDT 2007
是不是跟gbk或者utf8有关?
缘起和合 wrote:
> 什么编辑器干的?确实很乱,用VIM吧
>
> On 4/12/07, *zongzi* <honghunter at gmail.com
> <mailto:honghunter at gmail.com>> wrote:
>
> 为了方便放在PDA上面看小说,我用wget把网页(是新浪读书频道)下载到
> 本机,然后用perl去把其中的正文提取出来。
>
> 发现弄出来的txt文档中,有好多乱码(用记事本打开看的时候)。
>
> 请教大家怎么才能解决?
>
>
> 附件是我的代码,写的非常乱。真是不好意思了。
>
> --
> 这是一个有钱人的世界,与我的世界截然不同!
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org <mailto:China-pm at pm.org>
> http://mail.pm.org/mailman/listinfo/china-pm
>
>
>
>
> --
> ------======Nerazzurri======------
> ------------------------------------------------------------------------
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20070413/365f2215/attachment.html
More information about the China-pm
mailing list