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): """