Skip to content

Instantly share code, notes, and snippets.

@yakovsh
Last active January 17, 2016 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakovsh/935359268ef9e2269f7e to your computer and use it in GitHub Desktop.
Save yakovsh/935359268ef9e2269f7e to your computer and use it in GitHub Desktop.
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