Search notes:

Perl and utf8

use feature 'say';

use utf8;
say unpack('H*', 'ü');

no utf8;
say unpack('H*', 'ü');
The script above prints prints, if encoded in UTF-8:
fc
c3bc
fc is latin- (ISO 8859) for ü, c3 bc` is utf-8 for ü.

TODO

use feature 'unicode_strings';: This pragma was created to explicitly tell Perl that operations executed within its scope are to use Unicode rules.
It thus changes the interpretation of strings.
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.

See also

Perl module DBD::SQLite - testing utf8

Index