Dejan Josifović writes: > Using PlantUML from jar (org-plantuml-jar-path variable) and latest > org-mode, I wanted to render a diagram containing some Unicode > characters (such as '⊥' and '∀'), but the end image had some gibberish > instead. However, > trying this from a standalone file using plantuml-mode[1], the end image > rendered correctly. Here is some sample code which can reproduce the issue: > > #+BEGIN_SRC plantuml :file ./test.png > A -> B: ∀ characters display correctly is ⊥ > #+END_SRC FYI, I am unable to reproduce it on my system. > Comparing ob-plantuml.el and plantuml-mode.el files I found what is the > problem. plantuml-mode has a customizable variable for specifying > arguments when using PlantUML from jar (plantuml-jar-args (list > "-charset" "UTF-8" ). The charset arguments is what is needed for > the images to render correctly (I confirmed it by implementing it locally). > > I was wondering why such variable doesn't exist in ob-plantuml. I have > searched the mailing list archives, confirmed bugs and help page and > couldn't find anything related. Even though I was unable to reproduce your problem (most likely because my system is different), it sounds like a good idea to allow users to customise jar args as well. Then, users might do something like (setq org-plantuml-jar-path "/usr/share/plantuml/lib/plantuml.jar") (setq org-plantuml-args (list "-headless" "-theme" "aws-orange")) and set a global PlantUML theme. See the attached patch. It appears that we can simply carry over the executable args to jar (but please test it on other systems!) Best, Ihor