What steps will reproduce the problem?
# encoding: utf-8
import pydot
dot = pydot.Dot(charset='utf-8')
dot.add_node(pydot.Node('test',
label=u'<<font color="red">Проба</font>>'.encode('utf-8')))
dot.write_png('test.png')
What is the expected output? What do you see instead?
expected:
digraph G {
graph [charset="utf-8"];
node [label="\N"];
graph [bb="0,0,384,36"];
test [label=<<font color="red">Проба</font>>, pos="192,18", width="5.33", height="0.50"];
}
now:
digraph G {
graph [charset="utf-8"];
node [label="\N"];
graph [bb="0,0,384,36"];
test [label="<<font color=\"red\">Проба</font>>", pos="192,18", width="5.33", height="0.50"];
}
What version of the product are you using? On what operating system?
pydot 1.0.25, Python 2.6.5, ubuntu 10.04
Original issue reported on code.google.com by OKom...@gmail.com on 18 May 2011 at 9:47
Original issue reported on code.google.com by
OKom...@gmail.com
on 18 May 2011 at 9:47