UTF-8 characters usage in python3.4 script is throwing SyntaxError. How to use it?
<p>I am trying execute following lines of code in  python3.4:</p>

<pre><code>user ="Å ÅÅ½â¡â Æâ¬â°"
print(user)
</code></pre>

<p>But the above user initialization line is resulting in following error:</p>

<pre><code>SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0x8a in position 0: invalid start byte
</code></pre>

<p>I want to use the same user in authentication later. 
How to use UTF-8 characters in python3.4 script ?</p>

<p>Your file is not actually saved in UTF-8.  Assuming that the syntax error is occurring on the first non-ASCII character (<code>Å </code>), the file is most likely encoded in <a href="https://en.wikipedia.org/wiki/Windows-1252" rel="nofollow">Windows 1252</a>, which encodes that character as 0x8A.  If you wish to continue using this encoding, add this line to the top of your Python file:</p>

<pre><code># -*- coding: windows-1252 -*-
</code></pre>

python python-3.x utf-8