UTF8 Curly Quotes To ASCII
Join the DZone community and get the full member experience.Join For Free
Here's a cheap hack to convert UTF8 curly quotes to ASCII (but try to use CPAN module instead of this if you can).
$xml =~ s/\xe2\x80\x99/\'/gs; $xml =~ s/\xe2\x80\x98/\'/gs; $xml =~ s/\xe2\x80\x9c/\"/gs; $xml =~ s/\xe2\x80\x9d/\"/gs;
Opinions expressed by DZone contributors are their own.