We don't bite newbies here... much | |
PerlMonks |
Re^2: How to deal with malformed utf8 from XML parsingby ribasushi (Pilgrim) |
on Jan 09, 2008 at 20:12 UTC ( [id://661488]=note: print w/replies, xml ) | Need Help?? |
print "$str\n\n"; is a mistake, though. You shouldn't print unicode text data without specifying an output :encoding on the filehandle, or encode()ing it manually. I thought I can print unicode to STDOUT. I will read more on that. By the way, instead of the confusing, error-prone, and tedious process of figuring out the internal state of a variable using is_utf8 and a normal print, please use Devel::Peek instead If you pay closer attention you will see that I am using the validating capability of is_utf8 ($string, 'true_value'). I verified your claim, indeed it seems that this is not malformed utf. The reason I started digging is google complaining this is not a valid character. I will troubleshoot more. Thank you!
In Section
Seekers of Perl Wisdom
|
|