|There's more than one way to do things|
Re^3: Lost in encodings (updated: POC)by LanX (Cardinal)
|on Feb 08, 2020 at 12:14 UTC||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.
Yep, 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