From 2d787397b0b54f96ad2d7237a9f0a07af0049ec0 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 27 Jul 2012 13:56:01 +0000 Subject: [PATCH] GTK3: fix all unicode str conversions with common hack for now svn: r20103 --- src/gramps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gramps.py b/src/gramps.py index 853fbe983..37ff79645 100644 --- a/src/gramps.py +++ b/src/gramps.py @@ -30,6 +30,10 @@ # #------------------------------------------------------------------------- import sys +## hack to avoid mentioning 'utf8' encoding everywhere unicode or str is is used +reload(sys) +sys.setdefaultencoding('utf8') +## import os import signal import gettext