toohoo has asked for the wisdom of the Perl Monks concerning the following question:
Dear wise Monks,
I have possibly a missunderstanding of the correct working of package Encode
use Encode; use Data::Dumper; my $temp = encode( "iso-8859-1", 'Köln' ); say Dumper "========== encode =========="; say $temp, "(", length($temp), ")";
I get
Köln(5).. which tells me, that this the internal Perl representation of the string in UTF-8 encoding. What I am doing wrong!
Thanks in forehand
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: possible missunderstanding of package Encode
by duelafn (Parson) on Oct 20, 2015 at 11:09 UTC | |
by nikosv (Deacon) on Oct 20, 2015 at 11:35 UTC | |
by toohoo (Beadle) on Oct 20, 2015 at 11:41 UTC | |
Re: possible missunderstanding of package Encode
by Anonymous Monk on Oct 20, 2015 at 09:59 UTC | |
by toohoo (Beadle) on Oct 20, 2015 at 10:20 UTC | |
by Anonymous Monk on Oct 20, 2015 at 11:11 UTC | |
by toohoo (Beadle) on Oct 20, 2015 at 11:23 UTC |