title: Arabic presentation forms B support in c#
body: <p>I was trying to <strong>convert a file from utf-8 to Arabic-1265</strong> encoding using the Encoding APIs in C#, but I faced a strange problem that some characters are not converted correctly such as "لا" in the following statement "ﻣﺣﻣد ﺻﻼ ح عادل" it appears as "ﻣﺣﻣد ﺻ? ح عادل". Some of my friends told me that this is because these characters are from the Arabic Presentation Forms B. I create the file using notepad++ and save it as utf-8.</p>
  
  <p>here is the code I use</p>
  
  <pre><code>    StreamReader sr = new StreamReader(@"C:\utf-8.txt", Encoding.UTF8);
      string str = sr.ReadLine();
      StreamWriter sw = new StreamWriter(@"C:\windows-1256.txt", false, Encoding.GetEncoding("windows-1256"));
      sw.Write(str);
      sw.Flush();
      sw.Close();
  </code></pre>
  
  <p>But, I don't know how to convert the file correctly using this presentation forms in C#.</p>