githubashto / canviz

Automatically exported from code.google.com/p/canviz
0 stars 0 forks source link

Support for encoded text values #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm having problems making graphviz work correctly with UTF-8 when using stdin 
and stdout.
Because of that I ended up using URL encoded values and had to tweak canviz.js 
to decode them. Is 
it possible to have such decoding enabled in the library?

canviz.js r265 line 224:
text.update(decodeURI(str));

It seems that such a change won't break anything.

Original issue reported on code.google.com by rostisla...@gmail.com on 14 Aug 2009 at 8:41

GoogleCodeExporter commented 9 years ago
Labels in Graphviz are not defined as being URL-encoded values, so it doesn't 
make sense for Canviz to treat 
them as such. If you want to do so, you're welcome to keep this modification in 
your local copy of Canviz, but I 
won't make that change to the official version. I encourage you to discuss your 
UTF-8 difficulties in more detail 
with the developers of Graphviz on the graphviz-interest mailing list; perhaps 
they will have a solution.

Another workaround for the issue that wouldn't involve modifying Canviz could 
be to use files instead of stdin 
and stdout.

Original comment by ryandesi...@gmail.com on 18 Aug 2009 at 2:07