Thanks, Your Mother! :)
I used your explanation to get my code fixed and it worked on my development box, but when I rolled the code out to production, it still double-encoded it. For simplicity's sake, I took the example code you provided and ran it on both servers and I get different results. Both servers have the same version of Perl (5.8.8) and the same versions of WWW::Mech (1.22), HTML::TreeBuilder (3.23), HTML::Parser (3.65) and Encode (2.12).
Development Server:
$ perl /tmp/test.pl
Chicagoland and Northwest Indiana McDonald’s® Offer a Free Taste of McCafé at the Taste of Chicago
Production Server:
$ perl /tmp/test.pl
Chicagoland and Northwest Indiana McDonaldâs® Offer a Free Taste of McCafĂ© at the Taste of Chicago
What am I missing?
Thanks!
In reply to Re^2: Parsing UTF-8 HTML w/ HTML::Parser
by Purdy
in thread Parsing UTF-8 HTML w/ HTML::Parser
by Purdy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |