On one of my machines I have the error when I am working with google apps engine or django.
For example:
app.yaml
application: demas
An alternative solution from python issue9291 by Alexandr Zarubkin (me21):
add file named sitecustomize.py in Lib\site-packages folder.
import sys sys.setdefaultencoding("cp1251")