PHP json_encoding, how to deal with unicode escapes
in
Programming Questions
•
2 years ago
Dear processing forum,I'm trying to build some content statistics for my website using processing, but I'm stuck at the first step. I query my wordpress database and return a JSON string that I would like to parse in Processing. I already installed the blprnt JSON library and I can successfully read the JSON Object and access it's fields within Processing.The problem is, the string returned by PHP after json encoding is full of unicode escapes like u2019 u2013 and so on... I guess this is required by the JSON format. I've tried many methods to try to get back the original unicode characters, but I didn't figure out a solution.Do you know any method to convert the String back as it was prior to the encoding?greetings.
1