use Encode; use strict; use warnings; use 5.010; # only required for say(), not for the encoding stuff binmode STDOUT, ':encoding(UTF-8)'; $_ = "\\u6b63"; $_ =~ s/\\u(.{4})/chr(hex $1)/eg; say $_;
See also: Perl and Unicode.
In reply to Re: unicode/utf string to actual character
by moritz
in thread unicode/utf string to actual character
by xachen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |