Issue 4078, notes not in utf-8.

svn: r15592
This commit is contained in:
Peter Landgren 2010-06-24 07:49:14 +00:00
parent 52d5fbd042
commit cfbb494612

View File

@ -1012,7 +1012,14 @@ class GedcomWriter(UpdateCallback):
+1 <<CHANGE_DATE>> {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):
"""