in reply to Re: Decoding UTF-8 - "Cannot decode string with wide characters"
in thread Decoding UTF-8 - "Cannot decode string with wide characters"

The problem is that those strings were represented as hex bytes which were read as unicode, but aren't. They are char+NULL sequences, e.g "p\0e\0r\0l\0" for "perl", as can be seen here.

So, they must be converted back using ord and (via hex and s/00$//, or $_>>8) forth into the right format with chr.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}