Nick Kostirya has asked for the wisdom of the Perl Monks concerning the following question:
I want to get octets without the utf8 flag... I don't want to downgrade the utf8 flag manually...> perl -MJSON::XS -MData::Dumper -E 'say Dumper(JSON::XS->new()->decod +e(qq(["☺"])))' $VAR1 = [ "\x{e2}\x{98}\x{ba}" ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: JSON and utf8 flag
by choroba (Cardinal) on Sep 03, 2017 at 20:04 UTC | |
by Nick Kostirya (Sexton) on Sep 04, 2017 at 06:31 UTC | |
|
Re: JSON and utf8 flag
by Nick Kostirya (Sexton) on Sep 04, 2017 at 07:17 UTC | |
by ikegami (Patriarch) on Sep 05, 2017 at 17:12 UTC | |
by Nick Kostirya (Sexton) on Sep 06, 2017 at 09:26 UTC | |
by choroba (Cardinal) on Sep 06, 2017 at 12:26 UTC | |
by Nick Kostirya (Sexton) on Sep 06, 2017 at 13:08 UTC | |
| |
by ikegami (Patriarch) on Sep 07, 2017 at 18:04 UTC | |
by Nick Kostirya (Sexton) on Sep 08, 2017 at 09:01 UTC |