in reply to Re: german Alphabet
in thread german Alphabet
Well, it's not required, but it allows
use Encode qw( decode ); my $enc = 'utf-8'; my $germanText = 'Fräsen und ndk (Kamera - Fräsaufnahme)'; my $germ_str = decode($enc, $germanText);
or even
use Encode qw( decode_utf8 ); my $germ_str = decode_utf8('Fräsen und ndk (Kamera - Fräsaufnahme)');
to be reduced to
use utf8; my $germ_str = 'Fräsen und ndk (Kamera - Fräsaufnahme)';
Imagine manually decoding every string literal in the program like the OP did? Nonsense! Similarly, it's not necessary to add an encoding layer to STDOUT, but encoding everything passed to print would be ludicrous.
|
|---|