Because of binmod without ':utf8' it doesn't work with UTF local *STDIN; open(STDIN, '<', \$mime_string); binmode STDIN; It should look like binmode STDIN, ':utf8'; CPAN issuue: https://rt.cpan.org/Public/Bug/Display.html?id=91379
Because of binmod without ':utf8' it doesn't work with UTF
local *STDIN;
open(STDIN, '<', $mime_string);
binmode STDIN;
It should look like
binmode STDIN, ':utf8';
CPAN issuue: https://rt.cpan.org/Public/Bug/Display.html?id=91379