You are viewing an old version of this snippet. View Latest Version
|In Brief||Getting an error like this?... more|
Getting an error like this?
SyntaxError: Non-ASCII character 'xe2' in file /some/file on line 13, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Set Python to always assume UTF-8 file encodings by saving this in your site-packages directory.
If you're still getting an error, or want to set encodings per file, add this to the top of your file:
1# -*- coding: utf-8 -*-