Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Malformed UTF-8 characterby moritz (Cardinal) |
on Apr 30, 2011 at 13:51 UTC ( [id://902201]=note: print w/replies, xml ) | Need Help?? |
It seems you don't really understand character encodings. Try reading this article get the basics. The line use utf8; tells Perl that your script is stored in UTF-8, but it is not. Your editor did not save it as UTF-8, but rather as another encoding, likely Latin-1. So either don't tell Perl that the file is stored in UTF-8 when it is not, or do store the file in UTF-8 (and use an editor which properly supports UTF-8).
In Section
Seekers of Perl Wisdom
|
|