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

Attachment: pgpRqVumhA7nU.pgp
Description: PGP signature

Reply via email to