11-30-2020 02:38 PM
Hello dear friends ,
When I use the Get_Tweets_New.vi , the text indicator displays the text like that for example :
«It isn\u2019t the good answer !»
instead of
«It isn’t the good answer !».
The same issu for some others special characters .
Is there an option to set up somewhere in the subvis ? or should make my own vi to parse the txt ?
Thanks !
12-01-2020 08:37 PM
Hi champagne,
The i3-twitter API was written before LabVIEW included the Unflatten from JSON VI.
Instead i3-twitter uses the older i3-json API to parse tweets. The i3-json API intentionally avoids parsing escape codes that are outside of the ASCII range in the i3-json::ParseString.vi:
So the API is currently behaving as expected as the i3-json VIs do not support characters outside the ASCII range. You could make a new version of the Get Tweets New VI to parse the text that used the Unflatten From JSON VI which has better Unicode support and may be able to handle the character.
12-02-2020 02:36 AM
Ok MilanR !
Thanks a lot !
I hadn't seen or opened the i3-json.lvlib::ParseString.vi .
Indeed this subvi is well commented. Thank you for your very clear explanation.
👍