title: Encoding issue for Python tool Unidecode on CL
body: <p>I need to convert unicode files to ascii. In case, a letter doesn't exist in ascii, it should be converted to it's closest ascii representation.
  I'm using the Unidecode tool for it (<a href="https://pypi.python.org/pypi/Unidecode" rel="nofollow noreferrer">https://pypi.python.org/pypi/Unidecode</a>). It works fine when I use it in the Python interpreter on the CL (thus, by invoking <code>python</code> and then importing the libraries and then printing the decoded word like this: <code>print unidecode(u'äèß')</code>)</p>
  <p>Unfortunately, when I try to use this tool directly on the command line (thus, by doing something like <code>python -c &quot;from unidecode import *; print unidecode(u'äèß')&quot;</code>, it only prints gibberish (<code>A$?A&quot;A</code> to be exact, even though it should've printed (and did in the interpreter) <code>aess</code>). This is annoying and I don't know how to solve that issue. I thought it might be due to encoding errors with my Terminal, not being set correctly to utf-8 or something. However, <code>locale</code> in my Terminal printed me the following output:</p>
  <blockquote>
  <p>LANG=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_COLLATE=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_CTYPE=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_MESSAGES=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_MONETARY=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_NUMERIC=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_TIME=&quot;de_DE.UTF-8&quot;</p>
  <p>LC_ALL=&quot;de_DE.UTF-8&quot;</p>
  </blockquote>
  <p>Or, might it be due to Python that has problems with StdIn encoding on the command line? It gave me correct output in the python interpreter, but when invoking <code>python -c</code> not.</p>
  <p>Do you guys have an idea?</p>