From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [babel] Can't write accented characters in R graphics Date: Wed, 11 Dec 2013 09:48:17 +0100 Message-ID: <86eh5jpycu.fsf@somewhere.org> References: <86vbz3si21.fsf@somewhere.org> <867gbi2pm0.fsf_-_@somewhere.org> <86vbywr1a0.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain 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 Christian Moe wrote: > Sebastien Vauban writes: > >> Fixed with: >> >> --8<---------------cut here---------------start------------->8--- >> ;; accented characters on graphics >> (setq org-babel-R-command >> (concat org-babel-R-command " --encoding=UTF-8"))) >> --8<---------------cut here---------------end--------------->8--- > > That looked promising, but when I tried it, I got the following > *Org-Babel Error Output*, which shows Babel choking on the first > non-ascii character at the start of the xlab string: > > Error: unexpected '/' in: > "plot(1:10, 1:10, xlab="dev.off() > }}(),transfer.file="/var/folders/JV/JVNxBfnMGkWC9Aw0BZa8Kk+++TI/-Tmp-/" > Execution halted > > Still baffled, Maybe try with variations of the above encoding, such as latin1 or so. Pay attention: - Different installations have different expectations (the Windows R binary does not behave the same as the Cygwin R for the default encoding). - The encoding name is not spelled the same between the Windows R binary and the Cygwin R one: UTF-8 passes both tests, utf8 only for the Windows binary... Best regards, Seb -- Sebastien Vauban