I am importing Facebook messages from JSON, but getting weird symbols instead of standard quotations and such?

조회 수: 34 (최근 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.

답변 (1개)

Nipun Katyal
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.

카테고리

Help CenterFile Exchange에서 JSON Format에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by