From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Donat Subject: org-babel, python, encoding and table Date: Tue, 7 May 2013 14:55:05 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ffba45f8830b004dc2053df Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZhQD-0002DU-FE for emacs-orgmode@gnu.org; Tue, 07 May 2013 08:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZhQC-0001pf-5p for emacs-orgmode@gnu.org; Tue, 07 May 2013 08:55:09 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:62168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZhQC-0001ob-00 for emacs-orgmode@gnu.org; Tue, 07 May 2013 08:55:08 -0400 Received: by mail-wi0-f178.google.com with SMTP id hm14so581938wib.5 for ; Tue, 07 May 2013 05:55:06 -0700 (PDT) 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: emacs-orgmode@gnu.org --e89a8ffba45f8830b004dc2053df Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, My problem is about python code evaluation with org-babel that should give a table containing accented characters. Here is an example : #+NAME: test1 #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return b a =3D ( ( "=E9", "a" ), ( "a", "=E0" ) ) b =3D "=E9" #+end_src #+RESULTS: test1 : =E9 It's ok, no problem! But : #+NAME: test2 #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return a a =3D ( ( "=E9", "a" ), ( "a", "=E0" ) ) b =3D "=E9" #+end_src #+RESULTS: test2 | \303\251 | a | | a | \303\240 | I don't understand why the accented characters are replaced by some codes when the results is interpreted as org-table... Any idea, workaround to solve my problem would be much appreciated! I use Org-mode version 8.0.2 (8.0.2-2-g93da18-elpaplus @ /home/roland/.emacs.d/elpa/org-plus-contrib-20130429/). Thanks in advance. Best regards, Roland. --e89a8ffba45f8830b004dc2053df Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

My problem is about python= code evaluation with org-babel that should give a table containing accente= d characters.

Here is an example :=A0<= /div>
#+NAME: test1
#+begin_src python :results va= lue :preamble # -*- coding: utf-8 -*- :return b
a =3D ( ( "= =E9", "a" ), ( "a", "=E0" ) )
= b =3D "=E9"
#+end_src

#+RESULTS: test1
: =E9

It's ok, no problem!

But :
#+NAME: test2
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return= a
a =3D ( ( "=E9", "a" ), ( "a", &= quot;=E0" ) )
b =3D "=E9"
#+end_src

#+RESULTS: test2
| \303\251 | a =A0 =A0 =A0 =A0|
| a =A0 =A0 =A0 =A0| \303\240 |

I d= on't understand why the accented characters are replaced by some codes = when the results is interpreted as org-table...

Any idea, workaround to solve my problem wo= uld be much appreciated!

I use=A0Org-m= ode version 8.0.2 (8.0.2-2-g93da18-elpaplus @ /home/roland/.emacs.d/elpa/or= g-plus-contrib-20130429/).

Thanks in advance.

Best regards,

Roland.


--e89a8ffba45f8830b004dc2053df--