Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/sugar-session5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/sugar-session b/bin/sugar-session
index 42e7beb..7455f38 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -22,6 +22,11 @@ import time
import subprocess
import shutil
+# Change the default encoding to avoid UnicodeDecodeError
+# http://lists.sugarlabs.org/archive/sugar-devel/2012-August/038928.html
+reload(sys)
+sys.setdefaultencoding('utf-8')
+
if os.environ.get('SUGAR_LOGGER_LEVEL', '') == 'debug':
print '%r STARTUP: Starting the shell' % time.time()
sys.stdout.flush()