Reading Danish characters from text files
<p>I am trying to read text files that contains some danish characters. I have found a few ways to do it using different types of encoding but the examples I have seen are reading just one file. This is what I have so far. </p>

<pre><code>//search directory for all .txt files
foreach (string files in Directory.GetFiles(@"C:\ftp\inbox", "*.txt"))
{     
    //The 'using' command close connection when it is done
    using (var reader = new StreamReader(File.OpenRead(files)))               
    {
        // Handle contents
    }
}
</code></pre>

<p>My problem is all the characters are being read as �. I need them to be read in as they are.</p>
