Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Malformed UTF-8 characterby Steve_BZ (Chaplain) |
on Apr 29, 2011 at 19:53 UTC ( [id://902060]=perlquestion: print w/replies, xml ) | Need Help?? |
Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question: Hi Guys, I seem to have a strange encoding bug when I use degrees C written like this: °C. I have a function t("°C") which gives me an interpreter error: Malformed UTF-8 character (unexpected continuation byte 0xb0, with no preceding start byte) with double quotes. When I use single quotes, I get no interpreter error, but the function fails at the first database call. If I step through the code, the code hangs. If I execute it, I get a database error. I'm using the statements:
Any insight gratefully received. Regards Steve
Back to
Seekers of Perl Wisdom
|
|