Corrupted symbols with xml encoding iso-8859-1 in POST request
<p>I use this code in asp.net web api controller to save xml content to file:</p>

<pre><code>using (var str = await Request.Content.ReadAsStreamAsync())
using (var fileStream = File.Create(@"C:\directory\somename.xml")
{
    await str.CopyToAsync(fileStream);
}
</code></pre>

<p>If I send this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;root&gt;Förstelärare&lt;/root&gt;
</code></pre>

<p>it's ok. But in this case:</p>

<pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
&lt;root&gt;Förstelärare&lt;/root&gt;
</code></pre>

<p>I see this in file:</p>

<pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
&lt;root&gt;FÃ¶rstelÃ¤rare&lt;/root&gt;
</code></pre>

<p>I see problem in encoding. How to fix it properly?
I post requests uisng chrome extension RestClient. In another case we upload data from request stream to ftp server using <code>WebRequest</code>. The same problem.<br/><strong>Update:</strong> another interesting thing - corrupted data looks ok in windows notepad but corrupted in Notepad++.</p>