Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

special characters in parsed json rendering badly in browser

by slugger415 (Monk)
on Sep 01, 2018 at 20:30 UTC ( #1221554=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use JSON qw( decode_json );
    use LWP::Simple;
    ...
    my($decoded) = decode_json($json);
    $event{'desc'} = utf8::decode($decoded->{'description'});
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1221554]
Approved by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2020-03-30 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (175 votes). Check out past polls.

    Notices?