I am importing Facebook messages from JSON, but getting weird symbols instead of standard quotations and such?
39 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Nipun Katyal
2020 年 3 月 13 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で JSON Format についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!