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: Re: [orange] parsing html, yet another utf8 problem :(: Edit Log



orange
Novice

Jan 17, 2013, 5:14 AM


Views: 716
Re: [orange] parsing html, yet another utf8 problem :(

er, I found the solution, need to open file first as utf8:


Code
 open(my $fh, "<:utf8", "foo.html") || die; 
$p->parse_file($fh);



(This post was edited by orange on Jan 17, 2013, 5:15 AM)


Edit Log:
Post edited by orange (Novice) on Jan 17, 2013, 5:15 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