From cfbb494612c287a08e8b784995535a752845b376 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 24 Jun 2010 07:49:14 +0000 Subject: [PATCH] Issue 4078, notes not in utf-8. svn: r15592 --- src/plugins/export/ExportGedcom.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index 85b875080..2fba2fdb0 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -1012,7 +1012,14 @@ class GedcomWriter(UpdateCallback): +1 <> {0:1} """ - self.__writeln(0, '@%s@' % note.get_gramps_id(), 'NOTE ' + note.get()) + # The note must be converted to unicode + # Method stolen from ExportXml.py + line = note.get() + try: + line = unicode(line) + except: + line = unicode(str(line),errors='replace') + self.__writeln(0, '@%s@' % note.get_gramps_id(), 'NOTE ' + line) def __repos(self): """