diff --git a/common/common/__init__.py b/common/common/__init__.py index f2ff9fa..9993aaf 100644 --- a/common/common/__init__.py +++ b/common/common/__init__.py @@ -2,6 +2,13 @@ """A place for common utilities between wubloader components""" +# HACK: This sets the default encoding for the entire process. +# It is possible this may break (badly-written) third party libs. +import sys +reload(sys) +sys.setdefaultencoding('utf-8') + + import datetime import errno import os