title: How to change the encoding of the HttpClient response
body: <p>I'm trying to learn about Async programming using VS2012 and its Async Await keyword. That is why i wrote this piece of code:</p>
  
  <pre class="lang-csharp prettyprint-override"><code>protected override async void OnNavigatedTo(NavigationEventArgs e)
  {
      string get = await GetResultsAsync("http://saskir.medinet.se");
  
      resultsTextBox.Text = get;
  }
  
  private async Task&lt;string&gt; GetResultsAsync(string uri)
  {
      HttpClient client = new HttpClient();
  
      return await client.GetStringAsync(uri);
  }
  </code></pre>
  
  
  
  <p>The problem is that when i try to debug the application, it gives me an error with this message:</p>
  
  <blockquote>
    <p>The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.</p>
  </blockquote>
  
  <p>I guess this is because the website have some Swedish char, but i can't find how to change the encoding of the response. Anyone can guide me plz?</p>