encoding - Facebook Graph API - non English album names -


I'm trying to do a simple thing - get all my albums The problem is that the album name is non-English (They are in Hebrew)

The code that retrieves the album:

  string query = "https: // graph.facebook.com/me/albums?access_token = ..."; String result = webClient.DownloadString (query);  

One of the returned albums looks like this:

  {"id": "410329886431", "to": {"name": "Name": "id": "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-18T 06: 20: 27 + 0000", "updated-time": "2010-07-18T 9: 29: 34 + 0000"},  

As you can see that the problem is in the name "property" Hebrew letters instead of me get those codes (These codes are not litter, they are compatible - each code probably represents the same Hebrew letter) The question is, how can I convert those codes into non-English language (in my case, Hebrew) . Or perhaps the problem is that I take the album back with the WebCalint object. Maybe you can change WebCalint in any way? Encoding?

What can I do to solve this problem?

Thanks in advance.

This is shown in Unicode (see the char definition in the sidebar). They are the escape sequences in which four hex digits are the unicode code points of the character. Note that since only four hex digits are available, only UNODAID characters can be displayed in JSON.

Any decent JSON Parser will convert these Unicode Escake sequences into correctly encoded characters for you - provided the target encoding is supported in the first place.


Comments