Fix of issue 2964.
svn: r12518
This commit is contained in:
parent
63757f1350
commit
bf71f6f367
@ -197,7 +197,7 @@ class GVDocBase(BaseDoc.BaseDoc, BaseDoc.GVDoc):
|
|||||||
self.write( '{\n' )
|
self.write( '{\n' )
|
||||||
self.write( ' bgcolor=white;\n' )
|
self.write( ' bgcolor=white;\n' )
|
||||||
self.write( ' center="true"; \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( ' concentrate="false";\n' )
|
||||||
self.write( ' dpi="%d";\n' % self.dpi )
|
self.write( ' dpi="%d";\n' % self.dpi )
|
||||||
self.write( ' graph [fontsize=%d];\n' % self.fontsize )
|
self.write( ' graph [fontsize=%d];\n' % self.fontsize )
|
||||||
@ -228,7 +228,7 @@ class GVDocBase(BaseDoc.BaseDoc, BaseDoc.GVDoc):
|
|||||||
|
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
""" Write text to the dot file """
|
""" 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):
|
def open(self, filename):
|
||||||
""" Implement BaseDoc.BaseDoc.open() """
|
""" Implement BaseDoc.BaseDoc.open() """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user