From 3bef6c0609d3ca08d112c444625f60b4897710e6 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 --- ChangeLog | 3 +++ src/plugins/WriteCD.py | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2815bec2..d744412ec 100644 --- a/ChangeLog +++ b/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/src/plugins/WriteCD.py b/src/plugins/WriteCD.py index 19b5b9178..e932f42ba 100644 --- a/src/plugins/WriteCD.py +++ b/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()