<p>that's a Python question now :)<br>
Python needs to know in which encoding the file it runs is, and this defaults to ASCII.  UTF-8 is compatible with ASCII, but only for the characters that are part of ASCII -- obviously.<br>
So, if you use any non-ASCII characters (i.e. accented letters), you'll have to <a href="https://docs.python.org/2/howto/unicode.html#unicode-literals-in-python-source-code">tell Python your file is encoded in UTF-8</a>.  To do that, add</p>

<div class="highlight highlight-source-python"><pre><span class="pl-c"># -*- coding: utf-8 -*-</span></pre></div>

<p>just below your shebang line (<code>#!/...python</code>), e.g. 2nd line probably.</p>

<p>Note that Python3's (current version of Python) default is UTF-8, so if you used it instead of Python2 it'd work without out of the box ;)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/issues/1019#issuecomment-216240962">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-80Q7tpuzQpgsV8JW0RBvfY0_AFks5p9gEugaJpZM4IVRYW.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1019#issuecomment-216240962"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>