From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [Babel][R] Non-ascii characters in R plots Date: Mon, 20 Aug 2012 10:23:20 +0200 Message-ID: <5031F3F8.4040208@christianmoe.com> References: <5030F9DC.6040200@christianmoe.com> <87vcgeigyw.fsf@gmx.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3N8M-0006Ja-Tw for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 04:14:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3N8M-0008Kk-1s for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 04:14:50 -0400 Received: from b1.hitrost.net ([91.185.211.67]:29221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3N8L-0008Kc-Ro for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 04:14:49 -0400 In-Reply-To: <87vcgeigyw.fsf@gmx.com> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode On 8/20/12 1:44 AM, Eric Schulte wrote: >> When I the following example source block in Org I get a plot in which >> the non-ascii characters are replaced by double dots (namely, the >> degree sign in `degrees C' and the `Å' in `År', Norwegian for `Year'). >> >> #+begin_src R :results graphics :file >> ~/Desktop/testplot-with-Babel.png :width 480 :height 360 >> temp <- c(15, 17, 16, 19, 17, 18) >> year <- c(2000:2005) >> plot(year, temp, xlab="\305r", ylab="\260C") >> #+end_src >> (...) >> Yours, >> Christian >> > > Hi Christian, > > Your example worked for me without problem, however I had to replace the > characters from your original email with valid (at least on my system) > utf8 alternatives. See the attached org-mode file and resulting plot. > Hi, Eric, Thanks for taking a look. Sorry about messing up the special characters in the email, I should have attached a proper text file. But I did use valid UTF8 in Org: the same as in your example, code points #xC5 and #xB0. Evaluating your example on my Mac gives the same result as before: Special characters are replaced with two dots. Tangling it and running the tangled file works fine. It's not really a problem, I can work around it with \u.... escapes, which may be the safest approach anyway. But it's curious. Since it works for you, it probably isn't Babel's fault. Maybe something Mac-specific in the communication between Emacs and the shell. Maybe there's a setting I can change, but all the variables I've been able to think of already default to utf-8-unix. Yours, Christian