title: python arabic encoding issue
body: <p>i have a text with windows-1256 encoding. now i want to convert text from arabic(windows-1256) to utf-8 </p>
  
  <p><strong>sample text :</strong></p>
  
  <pre><code>Óæí Ïæã ÈíåÞí
  </code></pre>
  
  <p><strong>result :</strong></p>
  
  <pre><code>سوي دوم بيهقي
  </code></pre>
  
  <p>i use this code to decode and encod to utf-8</p>
  
  <pre><code># -*- coding: utf-8 -*-
  
  data = "Óæí Ïæã ÈíåÞí"
  print data.decode("windows-1256", "replace")
  print data.encode("windows-1256")
  </code></pre>
  
  <p>that code return this result:</p>
  
  <pre><code>أ“أ¦أ­ أڈأ¦أ£ أˆأ­أ¥أ‍أ­
  Traceback (most recent call last):
    File "mohmal2.py", line 5, in &lt;module&gt;
      print data.encode("windows-1256")
    File "/usr/lib/python2.7/encodings/cp1256.py", line 12, in encode
      return codecs.charmap_encode(input,errors,encoding_table)
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
  </code></pre>
  
  <p>i found a site that can convert this text:</p>
  
  <p><a href="http://www.iosart.com/tools/charset-fixer/?source-text=%C3%93%00%C3%A6%C3%AD%20%C3%8F%C3%A6%C3%A3%20%C3%88%C3%AD%C3%A5%C3%9E%C3%AD%3C&amp;input-encoding=windows-1256" rel="noreferrer">http://www.iosart.com</a></p>