in reply to Re^2: Convert \u characters into utf8
in thread Convert \u characters into utf8
No. I'm suggesting that you use a JSON module for loading JSON data. There should be no need at least with the two JSON modules I mentioned to manually convert \uXXXX to their Unicode equivalents.
use JSON; use Data::Dumper; $Data::Dumper::Useqq = 1; my $data = decode_json( $file_content ); warn Dumper $data;
Note that File::Slurp is horribly broken regarding encodings. Some comments recommend File::Slurper, but I instead roll my own, which isn't rocket surgery either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Convert \u characters into utf8
by ultranerds (Hermit) on Feb 02, 2016 at 13:34 UTC |