in reply to Re^6: Seeking Perl docs about how UTF8 flag propagates
in thread Seeking Perl docs about how UTF8 flag propagates
use v5.12.0; use warnings; #use Devel::Peek; use utf8; use Encode qw(is_utf8 _utf8_on _utf8_off); my $str = "ä"; say $str, ":",length($str); #Dump($str); _utf8_off($str); say $str, ":",length($str); #Dump($str);
ä:1 ä:2
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Seeking Perl docs about how UTF8 flag propagates
by hv (Prior) on May 17, 2023 at 03:51 UTC | |
by Anonymous Monk on May 17, 2023 at 05:43 UTC | |
Re^8: Seeking Perl docs about how UTF8 flag propagates
by haj (Vicar) on May 17, 2023 at 06:46 UTC | |
by LanX (Saint) on May 17, 2023 at 10:21 UTC | |
by haj (Vicar) on May 17, 2023 at 11:27 UTC | |
by demerphq (Chancellor) on May 17, 2023 at 13:59 UTC |