From d107631a402c8ce0ac0be4c0d4b5a3d861415597 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sun, 10 May 2009 16:02:11 +0000 Subject: [PATCH] Fix if issue 2964. svn: r12517 --- src/ReportBase/_GraphvizReportDialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReportBase/_GraphvizReportDialog.py b/src/ReportBase/_GraphvizReportDialog.py index 45c39eb85..838469e26 100644 --- a/src/ReportBase/_GraphvizReportDialog.py +++ b/src/ReportBase/_GraphvizReportDialog.py @@ -198,7 +198,7 @@ class GVDocBase(BaseDoc.BaseDoc, BaseDoc.GVDoc): self.write( '{\n' ) self.write( ' bgcolor=white;\n' ) self.write( ' center="true"; \n' ) - self.write( ' charset="iso-8859-1";\n' ) + self.write( ' charset="utf8";\n' ) self.write( ' concentrate="false";\n' ) self.write( ' dpi="%d";\n' % self.dpi ) self.write( ' graph [fontsize=%d];\n' % self.fontsize ) @@ -229,7 +229,7 @@ class GVDocBase(BaseDoc.BaseDoc, BaseDoc.GVDoc): def write(self, text): """ Write text to the dot file """ - self._dot.write(text.encode('iso-8859-1', 'xmlcharrefreplace')) + self._dot.write(text.encode('utf8', 'xmlcharrefreplace')) def open(self, filename): """ Implement BaseDoc.BaseDoc.open() """