title: Difference between 32 and 64 bit python version of exe
body: <p>There is a script that should run on 32 and 64 bit windows 7.</p>
  
  <pre><code>UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 103-104 :character maps to &lt;undefined&gt; (From exe console)
  </code></pre>
  
  <p>Script works both using python 3.4 x64 and x86 (they are in separate folders), but when I create exe using pyinstaller <code>py -m Pyinstaller script.py</code> 64 bit version works fine, and x86 crashes with this error.
  I separately installed pyinstaller for 86 and 64 folders using pip. </p>
  
  <p>decoding/overwriting in script:</p>
  
  <pre><code>non_bmp_map = dict.fromkeys(range(0x10000, sys.maxunicode + 1), 0xfffd)
  
  info_non_bmp = str(info).translate(non_bmp_map)
  
  writer.writerows(ast.literal_eval(info_chat_non_bmp))
  </code></pre>
  
  <p>info - data selected from sqlite3 database.</p>
  
  <p>Are there any decoding differences in bit versions that can cause this error?</p>