From 30ac50668a6dceafd4466f6be9dc2c7f73c94626 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 2 Feb 2007 17:14:12 +0000 Subject: [PATCH] 2007-02-02 Alex Roitman * src/plugins/WriteCD.py: Properly encode URI. svn: r8028 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/WriteCD.py | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index b2815bec2..d744412ec 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2007-02-02 Alex Roitman + * src/plugins/WriteCD.py: Properly encode URI. + 2007-02-02 Don Allingham * FAQ: update a bit. diff --git a/gramps2/src/plugins/WriteCD.py b/gramps2/src/plugins/WriteCD.py index 19b5b9178..e932f42ba 100644 --- a/gramps2/src/plugins/WriteCD.py +++ b/gramps2/src/plugins/WriteCD.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2006 Donald N. Allingham +# Copyright (C) 2000-2007 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -284,7 +284,9 @@ class PackageWriter: select_clicked() # Write XML now - g = create('burn:///%s/data.gramps' % base,OPEN_WRITE ) + uri = 'burn:///%s/data.gramps' % base + uri = uri.encode('utf8') + g = create(uri,OPEN_WRITE) gfile = XmlWriter(self.db,self.callback,2) gfile.write_handle(g) g.close()