Skip to content

Instantly share code, notes, and snippets.

@andybak
Last active August 29, 2015 14:03
Show Gist options
  • Save andybak/2b1e40cab16412108ada to your computer and use it in GitHub Desktop.
Save andybak/2b1e40cab16412108ada to your computer and use it in GitHub Desktop.
# Put this in the following file:
# $VIRTUAL_ENV/lib/python2.7/site-packages/sitecustomize.py
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
print "-- setting utf-8 in virtualenv sitecustomize.py --"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment