From bf71f6f36724ac2e3ee4728d6c44df31fc882b84 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sun, 10 May 2009 16:04:58 +0000 Subject: [PATCH] Fix of issue 2964. svn: r12518 --- 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 9db082050..c9d056f06 100644 --- a/src/ReportBase/_GraphvizReportDialog.py +++ b/src/ReportBase/_GraphvizReportDialog.py @@ -197,7 +197,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 ) @@ -228,7 +228,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() """