title: HttpClient- No mediatypeformatter is available to read an object of type 'Model'
body: <p>I am using httpclient with .net core 2.1. Now the issue is when I am trying to fetch data from url I am getting the error "No mediatypeformatter is available to read an object of type 'Model'". The code is working fine on other places but here I am getting an exception. Here is the code:</p>
  
  <pre><code>            string url = uri;
              _httpClient.BaseAddress = new Uri(somestring);
              _httpClient.DefaultHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
              var response = await _httpClient.GetAsync(url);
              response.EnsureSuccessStatusCode();
              return await response.Content.ReadAsAsync&lt;MyModel&gt;();
  </code></pre>
  
  <p>If I use response.Content.ReadAsStringAsync() and deserialize the string using JsonConvert than it works fine but I think _httpClient is not that flexible. I also faced this issue a long time before while using restsharp but then I used "application/json; charset=utf-8" and it started working fine. So is there way to add charset=utf-8 in httpclient content-type header?</p>