emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-babel, python, encoding and table


From: Roland Donat
Subject: [O] org-babel, python, encoding and table
Date: Tue, 7 May 2013 14:55:05 +0200

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 = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+end_src

#+RESULTS: test1
: é

It's ok, no problem!

But :
#+NAME: test2
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return a
a = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]