Unicode python Error
<p>i'm trying to print : PokÃ©mon GO Viá»t Nam</p>

<pre><code>print u"PokÃ©mon GO Viá»t Nam"
</code></pre>

<p>and i'm getting :</p>

<pre><code>print u"PokÃmon GO Vi?t Nam"
SyntaxError: (unicode error) 'utf8' codec can't decode byte 0xe9 in position 0: unexpected end of data
</code></pre>

<p>i've tried : </p>

<pre><code>.encode("utf-8")
.decode("utf-8")
.decode('latin-1').encode("utf-8")
unicode(str.decode("iso-8859-4"))
</code></pre>

<p>My python version is 2.7.9 , Notepad++ UTF-8 encoding .
with no luck , how can i print it ? and i'm encountering this kind of issues all the time , what's the proper way to debug and get the right encoding ? </p>

<pre><code>#!/usr/bin/python
# -*- coding: utf-8 -*-

print "PokÃ©mon GO Viá»t Nam"
</code></pre>

<p>You can find <a href="https://www.python.org/dev/peps/pep-0263/" rel="nofollow">here</a> more info</p>

<p>For PyCharm settings, go to the menu: PyCharm --> Preference then use the search to look up "encoding", you should reach the following screen:</p>

<p><a href="http://i.stack.imgur.com/ftj8L.png" rel="nofollow"><img src="http://i.stack.imgur.com/ftj8L.png" alt="enter image description here"></a></p>

python unicode