[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] babel evaluation of python and utf-8
From: |
Alan Schmitt |
Subject: |
[O] babel evaluation of python and utf-8 |
Date: |
Thu, 26 Jun 2014 09:35:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
Hello,
I'm having trouble with the babel evaluation of python blocks containing
utf-8 encoded characters (which is the encoding of my org file).
I tried the approach suggested in this message
https://lists.gnu.org/archive/html/emacs-orgmode/2010-12/msg00086.html
in the following block
#+BEGIN_SRC python :prefix # -*- coding: utf-8 -*- :results output
print(u'∀')
#+END_SRC
but when I evaluate it, I get an error
File "<stdin>", line 1
SyntaxError: Non-ASCII character '\xe2' in file <stdin> on line 1, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for details
Am I doing something wrong?
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
pgpvQh444FQTi.pgp
Description: PGP signature
- [O] babel evaluation of python and utf-8,
Alan Schmitt <=