Force UTF-8 encoding in sc.py
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 22:14:50 +0000 (18:14 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 22:14:50 +0000 (18:14 -0400)
sc.py

diff --git a/sc.py b/sc.py
index 8e2db25a943be082fa4d573c3f9fe42276d4414b..a1c7333c45b8614830deb2c39d3a9c8924d0c9fd 100755 (executable)
--- a/sc.py
+++ b/sc.py
@@ -5,6 +5,9 @@ import sitecore
 if __name__ == '__main__':
     import sys
 
+    reload(sys)
+    sys.setdefaultencoding('utf-8')
+
     command = sys.argv[1]
     argv = sys.argv[1:]