Thanks
Now it's OK
Thank you very much.
Best regards,

On 6月3日, 上午11时57分, Liu Yubao <[email protected]> wrote:
> Hi,
>
> It seems your mail client intepreted my GB2312 encoded email in UTF-8 
> encoding.
>
> You'd better read `perldoc HTML::Element` more carefully and understand it....
>
> my @nodes = $tree->findnodes('/html/body/table/tr');
> for my $node (@nodes) {
>       # $node is 'tr'
>       my @tds = $node->content_list;
>
>       print $tds[0]->as_trimmed_text, " ", $tds[2]->as_trimmed_text, "\n";
>
> }
>
> About encoding problem, please find out which encoding you get and which 
> encoding
> you require first, then use Encode::decode()/encode()/from_to() to convert.

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

回复