title: Can't convert HttpResponseMessage with UTF8 encoding
body: <p>I'm struggling with the usual conversion issue, but unfortunately I haven't been able to find anything for my specific problem.</p>
  
  <p>My app is receiving a System.Net.Http.HttpResponseMessage, from a php server, UTF8 encoded, containing some characters like \u00c3\u00a0 (à) and I'm not able to convert them.</p>
  
  <pre><code>string message = await result.Content.ReadAsStringAsync();
  byte[] messageBytes = Encoding.UTF8.GetBytes(message);
  string newmessage = Encoding.UTF8.GetString(messageBytes, 0, messageBytes.Length);
  </code></pre>
  
  <p>This is just one of my try, but nothing happens, the resultring string still has the \u00c3\u00a0 characters.</p>
  
  <p>I have also read some answers like <a href="https://stackoverflow.com/questions/11293994/how-to-convert-a-utf-8-string-into-unicode">How to convert a UTF-8 string into Unicode?</a> but this solution doesn't work for me. This is the solution code:</p>
  
  <pre><code>public static string DecodeFromUtf8(this string utf8String)
  {
     // copy the string as UTF-8 bytes.
     byte[] utf8Bytes = new byte[utf8String.Length];
     for (int i=0;i&lt;utf8String.Length;++i) {
        //Debug.Assert( 0 &lt;= utf8String[i] &amp;&amp; utf8String[i] &lt;= 255, "the char must be in byte's range");
        utf8Bytes[i] = (byte)utf8String[i];
     }
  
     return Encoding.UTF8.GetString(utf8Bytes,0,utf8Bytes.Length);
  }
  
  DecodeFromUtf8("d\u00C3\u00A9j\u00C3\u00A0"); // déjà
  </code></pre>
  
  <p>I have noticed that when I try the above solution with a simple string like </p>
  
  <pre><code>string str = "Comunit\u00c3\u00a0"
  </code></pre>
  
  <p>the <em>DecodeFromUtf8</em> method works perfectly, the problem is when I use my response message.</p>
  
  <p>Any advice would be very appreciated</p>