![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Lost in encodings (updated: POC)by LanX (Cardinal) |
on Feb 08, 2020 at 12:14 UTC ( #11112614=note: print w/replies, xml ) | Need Help?? |
I can only speculate as long as you don't show us a Dump of $str. > My Terminal (iTerm2) is UTF-8. The OS is MacOS. I think if the encoding of the output channel is byte oriented, this would explain your false negative results. IOW your decoding is right but the test is wrong.
updateYep, tested on my Ubuntu VM, with utf8 console
*) DB<19> printf "%X ", $_ for 0303, 0274 C3 BC DB<20> printf "%X ", oct($_) for qw/303 274/ C3 BC
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|