From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-babel, python, encoding and table Date: Tue, 07 May 2013 12:41:18 -0400 Message-ID: <87zjw6spxt.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZkxC-0006qc-0i for emacs-orgmode@gnu.org; Tue, 07 May 2013 12:41:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZkxA-0001oI-IS for emacs-orgmode@gnu.org; Tue, 07 May 2013 12:41:25 -0400 Received: from mail-vc0-f177.google.com ([209.85.220.177]:52858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZkxA-0001o8-Du for emacs-orgmode@gnu.org; Tue, 07 May 2013 12:41:24 -0400 Received: by mail-vc0-f177.google.com with SMTP id ha12so714824vcb.22 for ; Tue, 07 May 2013 09:41:23 -0700 (PDT) In-Reply-To: (Roland Donat's message of "Tue, 7 May 2013 14:55:05 +0200") 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: Roland Donat Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > #+NAME: test2 > #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :retu= rn > a > a =3D ( ( "=C3=A9", "a" ), ( "a", "=C3=A0" ) ) > b =3D "=C3=A9" > #+end_src > > #+RESULTS: test2 > | \303\251 | a | > | a | \303\240 | > Maybe this isn't an execution problem, but is rather a buffer encoding problem. I executed your example above in a small buffer (attached). I then saved this buffer and was forced to specify an encoding, I selected utf8. If I cat the resulting file from disk, the accented characters appear correctly. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline; filename=encodings.org Content-Transfer-Encoding: quoted-printable #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return= a a =3D ( ( "=C3=A9", "a" ), ( "a", "=C3=A0" ) ) b =3D "=C3=A9" #+end_src #+RESULTS: | =C3=A9 | a | | a | =C3=A0 | --=-=-= Content-Type: text/plain So maybe the problem is simply Emacs not displaying utf8 characters correctly. Hope this helps, -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--