From 70658a52c8d9b1122784e22d7535511d9c3d2947 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 2 May 2002 21:53:30 +0000 Subject: [PATCH] Fixed unicode translation problem svn: r953 --- gramps/src/Report.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps/src/Report.py b/gramps/src/Report.py index b5aa3dcfa..76d716c5a 100644 --- a/gramps/src/Report.py +++ b/gramps/src/Report.py @@ -1019,6 +1019,10 @@ class DrawReportDialog(ReportDialog): """Create a document of the type requested by the user.""" self.doc = self.format(self.selected_style,self.paper,self.orien) +import latin_utf8 + +u2l = latin_utf8.utf8_to_latin + class TemplateParser(handler.ContentHandler): def __init__(self,data,fpath): handler.ContentHandler.__init__(self) @@ -1030,7 +1034,7 @@ class TemplateParser(handler.ContentHandler): def startElement(self,tag,attrs): if tag == "template": - self.data[attrs['title']] = attrs['file'] + self.data[u2l(attrs['title'])] = u2l(attrs['file']) def characters(self, data): pass