jabbalaci / graphviz-java-api

With this simple API you can simply call GraphViz's dot from your Java programs.
72 stars 35 forks source link

File Encoding Problem #5

Open rso1 opened 10 years ago

rso1 commented 10 years ago

Your API uses the standard encoding of the VM, which is problematic in case the encoding is set to something not graphviz compatible (e.g. Windows encoding together with Protege). I would therefore recommend setting the coding explicitly in the function "private File writeDotSourceToFile(String str)" via Writer fout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(temp), "UTF-8"))