in reply to How to interpret characters in Devel::Peek CUR
G'day ait,
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.
You can break those characters into their constituent bytes and check the octal values like this:
$ perl -C -E ' my $x = "\x{201c}S\x{201d}"; say $x; { use bytes; printf "%vo\n", $x; } ' “S” 342.200.234.123.342.200.235
See also: bytes noting the emboldened warning; and the vector flag information in sprintf.
— Ken
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to interpret characters in Devel::Peek CUR
by haukex (Archbishop) on Jun 09, 2020 at 07:59 UTC | |
by Tux (Canon) on Jun 09, 2020 at 11:11 UTC | |
Re^2: How to interpret characters in Devel::Peek CUR
by ait (Hermit) on Jun 11, 2020 at 17:00 UTC | |
Re^2: How to interpret characters in Devel::Peek CUR
by ait (Hermit) on Jun 16, 2020 at 15:07 UTC |