Hide
Stay up to dateembedded code automagically updates, each snippet and article has a feed Join Siafoo Now or Learn More

Set Default Python File Encoding

Revision 1 vs. Revision 2

Changelog: Added some info & keywords

Legend:

Unmodified
Added
Removed
  • Title

    r1 r2  
    1 Set Python to UTF-8 
     1Set Default Python File Encoding 
  • Description

    r1 r2  
    1 Save this in your site-packages directory. 
     1Getting an error like this?  
     2  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  
     3  
     4Set Python to always assume UTF-8 file encodings by saving this in your site-packages directory.