diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index ba20c7a56..e7b6c4482 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -424,6 +424,7 @@ def run(): _encoding = sys.stdout.encoding or sys.getdefaultencoding() except: _encoding = "UTF-8" + import codecs sys.stdout = codecs.getwriter(_encoding)(sys.stdout.detach(), 'backslashreplace') sys.stderr = codecs.getwriter(_encoding)(sys.stderr.detach(),