title: C# letters like å not correctly shown in output file
body: <p>I work in C# and this is my code:</p>
  
  <pre><code>        Encoding encoding;
          StringBuilder output = new StringBuilder();
  
          //somePath is string
          using (StreamReader sr = new StreamReader(somePath))
          {
              string line;
              encoding = sr.CurrentEncoding;
              while ((line = sr.ReadLine()) != null)
              {
                  //make some changes to line
                  output.AppendLine(line);
              }
          }
  
          using (StreamWriter writer = new StreamWriter(someOtherPath, false))//encoding
          {
              writer.Write(output);
          }
  </code></pre>
  
  <p>In the file which is on somePath, I have Norwegian characters like å. But, on the file in someOtherPath I get question marks instead of them.  I think it's an encoding problem, so I tried getting the input file encoding and to grant it to the output file. It had no results. I tried opening the file with Google Chrome and grant it every possible encoding but the letters weren't the same as in the input file.</p>