in reply to Re: How to interpret characters in Devel::Peek CUR
in thread How to interpret characters in Devel::Peek CUR

The characters, “ and ”, are U+201C and U+201D. The numbers \342\200\234 and \342\200\235 are the octal values of the bytes that make up those characters.

Sorry, but this leaves out a very important bit: these are the bytes that make up the characters when encoded as UTF-8.

  • Comment on Re^2: How to interpret characters in Devel::Peek CUR

Replies are listed 'Best First'.
Re^3: How to interpret characters in Devel::Peek CUR
by Tux (Canon) on Jun 09, 2020 at 11:11 UTC

    What he said :).

    In EBCDIC land you'd get something completely different:

    $ perl -MData::Peek -wE'say $^O;DPeek ("\x{201c}"); DPeek ("\x{201d}") +' os390 PV("\312\101\160"\0) [UTF8 "\x{201c}"] PV("\312\101\161"\0) [UTF8 "\x{201d}"]

    Enjoy, Have FUN! H.Merijn