I am trying to do a simple thing - get all my albums. the problem is that the album names are non-English ( they are in Hebrew ).
The code that retrieves the albums :
string query = "https://graph.facebook.com/me/albums?access_token=...";
string result = webClient.DownloadString(query);
And this is how one of the returned albums looks like :
{
"id": "410329886431",
"from": {
"name": "Noam Levinson",
"id": "500786431"
},
"name": "\u05ea\u05e2\u05e8\u05d5\u05db\u05ea \u05d2\u05de\u05e8 \u05e9\u05e0\u05d4 \u05d0",
"location": "\u05e9\u05e0\u05e7\u05e8",
"link": "http://www.facebook.com/album.php?aid=193564&id=500786431",
"count": 27,
"type": "normal",
"created_time": "2010-07-18T06:20:27+0000",
"updated_time": "2010-07-18T09:29:34+0000"
},
As you can see the problem is in the "name" property. Instead of Hebrew letters I get those codes (These codes are not garbage, they are consistent - each code probably represents a single Hebrew letter). The question is , how can I convert those codes to a non-English language ( In my case, Hebrew). Or maybe the problem is how I retrive the albums with the webClient object. maybe change webclient.Encoding somehow?
what can I do to solve this problem ?
Thanks in advance.