Json responses are not binary data to convert to string using some encodings. Instead, they are correctly decoded by your browser or HttpWebResponse
, as in your example. You need to do the second processing (regular expression, deserializers, etc.) to get the final data.
See what you get webClient.DownloadString("https://graph.facebook.com/HavelVaclav?access_token=????")
without any encoding
{"id":"100000042150992", "name":"Havel V\u00e1clav", "first_name":"Havel", "last_name":"V\u00e1clav", "link":"http:\/\/www.facebook.com\/havel.vaclav", "username":"havel.vaclav", "gender":"male", "locale":"cs_CZ" }
Will your encoding change \/
to /
?
So the problem is not with your StreamReader
.
source share