use feature 'say'; use utf8; say unpack('H*', 'ü'); no utf8; say unpack('H*', 'ü');
fc c3bc
fc
is latin- (ISO 8859) for ü,
c3 bc` is utf-8 for ü. use feature 'unicode_strings';
: This pragma was created to explicitly tell Perl that operations executed within its scope are to use Unicode rules. use 5.012
implicitly turns on the usage of this feature. :encoding(...)
in open
use utf8;
enables recognition of characters if the script is writtin in UTF-8.