I'm consuming an api but the return JSON does not come with the correct accent. in place of the spice comes% 20, for example.
In the request json I even put the encoding.UFT8.
How can I code this correctly?
private string jsonRequest = @"{'action': {'name': 'get_user_drivers','parameters': [{'driver_id': '','active_drivers': '','group_id': '','version': ''}],'session_token': '" + Helpers.TraffilogLogin.GetAuthToken() + "'}";
var content = new StringContent(jsonRequest , Encoding.UTF8, "application/json");
content.Headers.Clear();
content.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
HttpClient httpClientInstance = new HttpClient();
var response = httpClientInstance.PostAsync(BaseApi.traffilogApiUrl, content).Result;
JArray groupListJson = (JArray)JObject.Parse(response.Content.ReadAsStringAsync().Result)["response"]["properties"]["data"];