title: Python script doesn't write Greek characters to text file when started from batch file
body: <p>I have a batch file that runs a Python script. The Python script writes text to a text file.</p>
  
  <p>Now, normally this works fine, even with accented letters like à or ö, but not when Greek or Hebrew characters should be written. Then it doesn't write anything.</p>
  
  <p>If I run the Python script from IDLE, any kind of text is written to the file and no errors appear in the Shell window.</p>
  
  <p>Here's my test code:
  Python: </p>
  
  <pre><code># -*- coding: utf-8 -*-
  import codecs
  akasi='test' + unicode('aergשריש','utf-8')
  print akasi
  text_file = codecs.open('Temp.txt', 'a', encoding='utf-8')
  text_file.write(akasi)
  text_file.close()
  </code></pre>
  
  <p>Batch file</p>
  
  <pre><code>@Echo Off
  cd /D C:
  start /min /wait python "C:\Python27\Scripts\Temp03_27_310.py"
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance,
  Angela</p>