Problems? Is your data what you think it is? | |
PerlMonks |
special characters in parsed json rendering badly in browserby slugger415 (Monk) |
on Sep 01, 2018 at 20:30 UTC ( [id://1221554]=perlquestion: print w/replies, xml ) | Need Help?? |
slugger415 has asked for the wisdom of the Perl Monks concerning the following question: Hi, I have a simple JSON query (to Facebook events) that contains smart quotes and other special characters that render badly in the browser. I've tried utf8::encode on the relevant field but that seems to wipe it out completely (it returns nothing). code snippet:
Without the utf8::decode I get all the description but with bad character rendering, e.g. "Action Films" (with smart quotes) looks like: “Action filmsâ€But again, the utf8::decode seems to wipe it out. thanks, Scott
Back to
Seekers of Perl Wisdom
|
|