« Cleaning Up Bad HTML in Perl XmlHttpRequest, Unicode and Firefox »
Fixing “Input is not proper UTF-8, indicate encoding” Error
Posted October 26, 2008 – 12:21 pm by Yakov Shafranovich in ProgrammingQuick way to fix the following error in Perl:
:1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xA0 0x20 0xA0 0x3C
Use this command:
use Encode:
$string1 = decode("UTF-8", $input);
Permalink | Trackback URL | This post has
3 Responses to “Fixing “Input is not proper UTF-8, indicate encoding” Error”
I’ve been totally struggling with this error while trying to parse an RSS feed (not created by me) that claimed it was UTF-8 encoded.
Thanks so much for this solution!
By Sarah on Apr 27, 2009
very useful solution
By scott on Jun 14, 2010
Thanks! 2 years after you are still helping people!
By Sergio on Jun 24, 2011