good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Bug : eval and accentby jbert (Priest) |
on Nov 16, 2007 at 12:56 UTC ( [id://651188]=note: print w/replies, xml ) | Need Help?? |
Hmm...are you sure the file in in utf8? E9 is latin1 for e-acute.
Can you dump the hex values and check? (or just try code below). If your users are entering latin-1, then you could use the Encode module to shift the script to utf8. You don't seem to need 'use utf8' in the eval'd code in this case, but you seem to need it in the containing script.
In Section
Seekers of Perl Wisdom
|
|