From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Can't write accents in R graphics Date: Thu, 05 Dec 2013 11:33:58 +0100 Message-ID: <86vbz3si21.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org #+TITLE: ECM Process Coding System #+PROPERTY: eval yes #+PROPERTY: exports both #+PROPERTY: cache no * Problem I can't write accents in graphic titles (nor legends). * Settings After Googling (a lot), I always come back to the same set of solutions: - Adding the following in my ~.emacs~ file: #+begin_src emacs-lisp (setq process-coding-system-alist '(("R.*" . utf-8-unix))) #+end_src #+begin_src emacs-lisp (add-hook 'ess-R-post-run-hook (lambda () (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))) #+end_src - Setting the process coding system in the =3D*R*=3D buffer: #+begin_src emacs-lisp M-x set-buffer-process-coding-system RET utf-8-unix RET utf-8-unix RET #+end_src None of those does work for me, from an Org file... * Example ** Text Print a string does always work, in the Org buffer, and in the export. #+begin_src R print("=C3=89l=C3=A8ve") #+end_src #+results: : =C3=89l=C3=A8ve ** Graph But adding a title with accents never does: #+header: :file ecm-R-coding-system.png #+begin_src R :results graphics :width 240 :height 240 x <- 0:12 plot(sin(x/2)) title("=C3=89l=C3=A8ve") #+end_src #+results: [[file:ecm-R-coding-system.png]] * Observations You can see a demo of (some of) the tests I made on http://screencast.com/t/7Nz87zuqiz. Maybe the problem is not related neither to Org, nor ESS, as I see that =3DsessionInfo()=3D outputs French stuff. Maybe some of the R users here could share their experience with the "coding system" configuration? Best regards, Seb --=20 Sebastien Vauban