Put this file in the appropriate location on your system.

%%prettify 
{{{
# sitecustomize.py                   
# this file can be anywhere in your Python path,
# but it usually goes in ${pythondir}/lib/site-packages/

import sys

sys.setdefaultencoding('utf-8')
}}}
/%

----
[Python | CategoryArchive.Computing.Lang.Python]