CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: parsing html, yet another utf8 problem :(: Edit Log



orange
Novice

Jan 17, 2013, 4:56 AM


Views: 775
parsing html, yet another utf8 problem :(

I got another problem with utf8, this part:


Code
use HTML::Parse; 
my $p = HTML::Parser->new(
text_h => [\&text_rtn, 'dtext'],
);
$p->utf8_mode( 1 );
$p->parse_file("$file");

sub text_rtn {
foreach (@_) {
progress ( "\tParsed: >$_<\n");
}


doesn't work. It outputs instead of

:(


(This post was edited by orange on Jan 17, 2013, 4:57 AM)


Edit Log:
Post edited by orange (Novice) on Jan 17, 2013, 4:57 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives