in reply to Convert JSON to Perl and back with unicode
Normally I use:
#!/usr/bin/perl -CSDA use utf8; use Modern::Perl qw{2017}; use Data::Dumper; print STDERR Dumper(\%mydatatoshow) =~ s/\\x\{([0-9a-f]{2,})\}/chr(hex +($1))/ger;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert JSON to Perl and back with unicode
by choroba (Cardinal) on Apr 11, 2020 at 00:00 UTC |