in reply to Re^2: Special character not being captured
in thread Special character not being captured
decode expects the input to be in UTF-8, but you supplied the byte \xC3. It doesn't represent a UTF-8 sequence, so it's decoded to the Replacement Character \xFFFD.
You need
to get UTF-8 Æ back.Encode::encode("UTF-8", substr(Encode::decode("UTF-8", "\xC3\x86"),0,1 +))
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Special character not being captured
by vr (Curate) on Jun 18, 2019 at 13:09 UTC | |
by choroba (Cardinal) on Jun 18, 2019 at 13:17 UTC |
In Section
Seekers of Perl Wisdom