use utf8;

binmode($content, ':utf8');

2009/1/19 hfahe <[email protected]>:
> 编码,encode。
>
> 祝好
> ________________________________
>
> Yujie Jiang
>
> 2009-01-19
> ________________________________
> 发件人: 日总结
> 发送时间: 2009-01-12 14:46:59
> 收件人: PerlChina 论坛
> 抄送:
> 主题: [PerlChina] LWP 乱码怎么解决?
>
> use strict;
> my $url = 'http://www.gotojp.net/schools_detail46.htm';
>
> use LWP::Simple;
> my $content = get $url;
>   die "Couldn't get $url" unless defined $content;
> print $content;  #查看连接到的网页
>
>
> 我得到的网页是乱码,请问 我应该怎么办 ?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina 论坛”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

回复