Created
November 27, 2014 12:55
-
-
Save niczero/9f0e13b17bb5cb59c795 to your computer and use it in GitHub Desktop.
Test terminal character encoding in a perl one-liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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