title: UTF-8 File data to ANSII
body: <p>I have UTF-8 files (with Swedish äåö characters). I read those as:</p>
  
  <pre><code>List&lt;MyData&gt; myDataList = new List&lt;MyData&gt;();
  string[] allLines = File.ReadAllLines(csvFile[0], Encoding.Default);
  
  foreach (string line in allLines)
  {
    MyData myData = new MyData();
    string[] words = line.Split(";");
  
    myData.ID = words[0];
    myData.Name = word[1];
    myData.Age = words[2];
    myData.Date = words[3];
    myData.Score = words[4];
  
    //Do something...
    myDataList.Add(myData);
  }
  
  StringBuilder sb = new StringBuilder();
  foreach (string data in myDataList)
  {
     sb.AppendLine(string.Format("{0},{1},{2},{3},{4}",
         data.ID,
         data.Name,
         data.Age,
         data.Date,
         data.Score));
  }       
  
  File.WriteAllText("output.txt", sb.ToString(), Encoding.ASCII);
  </code></pre>
  
  <p>I get output.txt file in ansii but not with Swedish characters. Can someone help me to know how can I save file data from UTF-8 to Ansii? Thanks.</p>