title: Convert ANSI to UTF8
body: <p>I download a file from the internet in C# Windows Phone 8.1. The problem is, that the downloaded content has strange looking special characters. When I examined the file on my PC with Notepad++, it told me, that the file is encoded in <code>ANSI</code> and I want to read it as <code>UTF8</code></p>
  
  <p>Here my code</p>
  
  <pre><code>byte[] responseBytes = await client.GetByteArrayAsync("http://somesite/myfile.txt");
  string content = Encoding.UTF8.GetString(responseBytes, 0, responseBytes.Length);
  </code></pre>
  
  <p>But as it is encoded in ANSI, all special characters are displayed strange.</p>
  
  <p>Now after some research, a lot of people have this approach:</p>
  
  <pre><code>Encoding ANSI = Encoding.GetEncoding(1252);
  byte[] ansiBytes = ANSI.GetBytes(str);
  byte[] utf8Bytes = Encoding.Convert(ANSI, Encoding.UTF8, ansiBytes);
  String utf8String = Encoding.UTF8.GetString(utf8Bytes);
  </code></pre>
  
  <p>but in WP 8.1, the routine <code>Encoding.GetEncoding(1252)</code> is invalid, as well as <code>Encoding.Default</code>.
  What can I do, to have my string in UTF8?</p>