Hi Nicolas, I get your point. The git diff order is wrong. Here it is: --- lisp/ob-dot.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/ob-dot.el b/lisp/ob-dot.el index 31e0a4f32..7220a9e76 100644 --- a/lisp/ob-dot.el +++ b/lisp/ob-dot.el @@ -69,6 +69,8 @@ This function is called by `org-babel-execute-src-block'." (cmdline (or (cdr (assq :cmdline params)) (format "-T%s" (file-name-extension out-file)))) (cmd (or (cdr (assq :cmd params)) "dot")) + (coding-system-for-read 'utf-8) ;; use utf-8 with subprocesses + (coding-system-for-write 'utf-8) (in-file (org-babel-temp-file "dot-"))) (with-temp-file in-file (insert (org-babel-expand-body:dot body params))) -- TINYCHANGE Have a nice weekend. Sigmund Tzeng On Thu, Sep 27, 2018 at 10:58 PM Nicolas Goaziou wrote: > Hello, > > Sigmund Tzeng writes: > > > When trying to render a dot file with utf-8 encoded characters, > > org babel complained about the encodings. I cross checked ob-go.el at > > line 107-108 and made an identical patch to make utf-8 dot files work: > > > > > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv > > diff --git "a/elpa\\org-9.1.14\\ob-dot.el" > > "b/\\emacs261\\share\\emacs\\26.1\\lisp\\org\\ob-dot.el" > > index 0fe50d4..31e0a4f 100644 > > --- "a/elpa\\org-9.1.14\\ob-dot.el" > > +++ "b/\\emacs261\\share\\emacs\\26.1\\lisp\\org\\ob-dot.el" > > @@ -69,8 +69,6 @@ This function is called by > `org-babel-execute-src-block'." > > (cmdline (or (cdr (assq :cmdline params)) > > (format "-T%s" (file-name-extension out-file)))) > > (cmd (or (cdr (assq :cmd params)) "dot")) > > - (coding-system-for-read 'utf-8) ;; use utf-8 with subprocesses > > - (coding-system-for-write 'utf-8) > > (in-file (org-babel-temp-file "dot-"))) > > (with-temp-file in-file > > (insert (org-babel-expand-body:dot body params))) > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > I'm a bit surprised Emacs doesn't do the right thing here. > > Anyway, could you provide a commit message and use "git format-patch" > command. Also, could you add TINYCHANGE cookie if you haven't signed FSF > papers yet. > > Thank you. > > Regards, > > -- > Nicolas Goaziou >