I'm retrieving from geonames the names of locations (that should have unconventional characters depending by the country): for example:
retrieve this:
{
adminCode2: "8632559",
adminCode1: "59",
adminName2: "Malkara",
lng: 26.964775,
distance: "6.73594",
countryCode: "TR",
postalCode: "59300",
adminName1: "Tekirdağ",
placeName: "Çavuşköy",
lat: 40.875728
},
and when I download with
var json = new System.Net.WebClient().DownloadString(url);
I get this:
{
"adminCode2":"8632559",
"adminCode1":"59",
"adminName2":"Malkara",
"lng":26.964775,
"distance":"6.73594",
"countryCode":"TR",
"postalCode":"59300",
"adminName1":"TekirdaÄŸ",
"placeName":"Çavuşköy",
"lat":40.875728
},
any ideas on how to convert directly all the string to get the right names?
thanks in advance!