Stoimen
Stoimen

Reputation: 669

Problem with Cyrillic encoding and Facebook graph

I am trying to make a simple Facebook app that takes some data from the user wall. The problem is that most of my friends write in Cyrillic and when I try to make a graph api call like https://graph.facebook.com/userID/home?access_token=someToken I get the data and all the Cyrillic characters are replaced with something like that "\u0442\u0438 \u043f\u043e\u0434\u0430\u0440\u044f\u0442".

So I am wondering if there is a PHP function that translates this encoding into something readable. I hope that you can help me. Have a nice day :)

Upvotes: 0

Views: 1314

Answers (1)

Stoimen
Stoimen

Reputation: 669

So after some more searching on this site I found out this solution

Cyrillic characters in PHP's json_encode

I am using the Zend framework function for encoding that is pointed out in the answers. I am responding to my question so that if anyone ever stuck on something like that and come to my question searching for the answer he will find out the solution.

Upvotes: 1

Related Questions