Skip to content

Instantly share code, notes, and snippets.

@niczero
Created November 27, 2014 12:55
Show Gist options
  • Save niczero/9f0e13b17bb5cb59c795 to your computer and use it in GitHub Desktop.
Save niczero/9f0e13b17bb5cb59c795 to your computer and use it in GitHub Desktop.
Test terminal character encoding in a perl one-liner
perl -MMojo::Base=strict -MEncode -E'say qq{$_: }. encode($_, q{Ue: }. chr(220) .q{; Euro: }. chr(8364)) for qw(utf-8 latin1 iso-8859-15 utf-16)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment