samuel22200 Naxos Posted May 9, 2018 Share Posted May 9, 2018 Hello, do you know why lsl is not correctly parsing json ? I just get the raw json without unicode to UTF-8 transformation. example: Quote statuses[{"created_at":"Wed May 09 21:00:25 +0000 2018","id":994321214742106117,"id_str":"994321214742106117","full_text":"RT @ECiotti: On ne r\u00e9forme pas un pays par de jolis discours, de la communication et de l\u2019esbrouffe. Le pouvoir jupit\u00e9rien de #Macron est u\u2026","truncated":false,"display_text_range":[0,140],"entities":{"hashtags":[{"text":"Macron","indices":[126,133]}],"symbols":[],"user_mentions":[{"screen_name":"ECiotti","name":"Eric Ciotti","id":87886754,"id_str":"87886754","indices":[3,11]}],"urls":[]},"metadata":{"iso_language_code":"fr","result_type":"recent"},"source":"\u003ca href=\"http:\/\/twitter.com\/download\/android\" rel=\"nofollow\"\u003eTwitter for Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted May 10, 2018 Share Posted May 10, 2018 While LSL has llUnescapeURL, it does not support the "%u####" format, but there are some custom functions found in the notes of that wiki page. You would still have to manually parse the full_text string for each instance of "\u" and replace them with a Unicode character (using llSubStringIndex, llGetSubString, llDeleteSubString, llInsertString). 2 Link to comment Share on other sites More sharing options...
samuel22200 Naxos Posted May 10, 2018 Author Share Posted May 10, 2018 Ho ok thank you Link to comment Share on other sites More sharing options...
Oz Linden Posted May 10, 2018 Share Posted May 10, 2018 I've reopened BUG-6296 (which really shouldn't have been closed in the first place) for this. It may be a while before we get to a fix, so for now the workaround described on the wiki is a good idea. 1 4 Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted May 10, 2018 Share Posted May 10, 2018 Maybe we can also get entities support someday too, since LL's own api's use them. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now