title: SyntaxError: Non-ASCII character '\xe3' in file G:\test.py on line 2, but no encoding declared
body: <p>I have a simple script.</p>
  
  <pre><code># -*- encoding : utf-8 -*-
  episode_title = "ザ・ロック（日本語吹替版)".decode('utf-8')
  print episode_title.encode('utf-8')
  </code></pre>
  
  <p>But it doesn't work at my <code>cmd</code> console (Win8 PC, encoding is big5).</p>
  
  <pre><code>SyntaxError: Non-ASCII character '\xe3' in file G:\test.py on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
  </code></pre>
  
  <p>Although I have change the code page to utf-8</p>
  
  <pre><code>chcp 65001 
  </code></pre>
  
  <p>It still doesn't work.</p>
  
  <p>But when I run it in my IPython notebook, it works! (Works also in PyCharm and the IPython Qt console)</p>
  
  <pre><code>ザ・ロック（日本語吹替版)
  </code></pre>
  
  <p>But when I run it in Ubuntu:</p>
  
  <pre><code>aaron@ubuntu:~$ python test.py
    File "test.py", line 2
  SyntaxError: Non-ASCII character '\xe3' in file test.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  </code></pre>
  
  <p>It surprised me that it cannot run in Ubuntu.</p>
  
  <p>Would someone please explain this mystery?</p>
  
  <p>Why it run in IPython Notebook or PyCharm? but not in CMD or Ubuntu Terminal?</p>