Skip to content

Instantly share code, notes, and snippets.

@yakovsh
Last active January 17, 2016 15:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Fixing "Input is not proper UTF-8, indicate encoding" Error
# Quick 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment