[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-babel, python, encoding and table
From: |
Eric Schulte |
Subject: |
Re: [O] org-babel, python, encoding and table |
Date: |
Tue, 07 May 2013 12:41:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
> #+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 |
>
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.
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return a
a = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+end_src
#+RESULTS:
| é | a |
| a | à |
So maybe the problem is simply Emacs not displaying utf8 characters
correctly.
Hope this helps,
--
Eric Schulte
http://cs.unm.edu/~eschulte
- [O] org-babel, python, encoding and table, Roland Donat, 2013/05/07
- Re: [O] org-babel, python, encoding and table,
Eric Schulte <=
- Re: [O] org-babel, python, encoding and table, Andreas Röhler, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Eric Schulte, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Andreas Röhler, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Nick Dokos, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Andreas Röhler, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Nick Dokos, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Andreas Röhler, 2013/05/08
- Re: [O] org-babel, python, encoding and table, Roland Donat, 2013/05/07
- Re: [O] org-babel, python, encoding and table, Andreas Röhler, 2013/05/07
Re: [O] org-babel, python, encoding and table, Andreas Röhler, 2013/05/08