Created
April 10, 2019 06:01
-
-
Save ywindish/af8580973ca9487c25c78d338a4285bf to your computer and use it in GitHub Desktop.
Perl one-liner: Unicode code point converted to a character
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 -MEncode -e 'my $str="\x{4ee4}";print Encode::encode("utf-8", $str);print "\n"' | |
# => 令 | |
# perl -MEncode -e 'my $str="\x{f9a8}";print Encode::encode("utf-8", $str);print "\n"' | |
# => 令 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment