From: Roland Donat <roland.donat@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-babel, python, encoding and table
Date: Tue, 7 May 2013 14:55:05 +0200 [thread overview]
Message-ID: <CAJEMt_qmPgbJRuxZUpe67D2RodqV3p=9PZkhde=FZEspaRJ=7g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 945 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1646 bytes --]
next reply other threads:[~2013-05-07 12:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-07 12:55 Roland Donat [this message]
2013-05-07 16:41 ` org-babel, python, encoding and table Eric Schulte
2013-05-07 17:34 ` Andreas Röhler
2013-05-07 18:18 ` Eric Schulte
2013-05-07 18:45 ` Andreas Röhler
2013-05-07 19:20 ` Nick Dokos
2013-05-07 19:40 ` Andreas Röhler
2013-05-07 20:05 ` Nick Dokos
2013-05-08 6:21 ` Andreas Röhler
2013-05-07 19:44 ` Roland Donat
2013-05-07 19:52 ` Andreas Röhler
2013-05-08 8:36 ` Andreas Röhler
2013-05-29 12:18 ` Roland DONAT
2013-05-29 13:00 ` Eric Schulte
2013-05-29 23:54 ` Christian Wittern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJEMt_qmPgbJRuxZUpe67D2RodqV3p=9PZkhde=FZEspaRJ=7g@mail.gmail.com' \
--to=roland.donat@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.