I am importing Facebook messages from JSON, but getting weird symbols instead of standard quotations and such?
Mostra commenti meno recenti
Hello,
I am trying to import my chat history to do some analysis on it. However my messages are turning weird, for instance, an apostrophy " ' " looks like it is converting to " â".
I am new to this, but I think it has to do with encoding or something?
Can anyone point me in the right direction.
Risposte (1)
Nipun Katyal
il 13 Mar 2020
0 voti
You can get the text from the json file using fileread but you need to decode it. This can be done using jsondecode. Follow the steps as indicated in this link to parse json file without any encoding issues.
Categorie
Scopri di più su JSON Format in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!