Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

special characters in parsed json rendering badly in browser

by slugger415 (Monk)
on Sep 01, 2018 at 20:30 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found