From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: babel evaluation of python and utf-8 Date: Tue, 08 Jul 2014 11:57:19 +0700 Message-ID: <87r41wsb0w.wl%n142857@gmail.com> References: <87simrhcyc.wl%n142857@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4NTC-0004GY-KQ for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 00:57:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4NT3-0000mk-Jp for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 00:57:34 -0400 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:46146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4NT3-0000mR-CS for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 00:57:25 -0400 Received: by mail-pd0-f175.google.com with SMTP id v10so6497708pde.20 for ; Mon, 07 Jul 2014 21:57:24 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode El Fri, 04 Jul 2014 16:08:10 +0200 Alan Schmitt va escriure: >=20 > On 2014-06-26 18:07, Daniel Clemente writes: >=20 > >>=20 > >> #+BEGIN_SRC python :prefix # -*- coding: utf-8 -*- :results output > >> print(u'=E9') > >> #+END_SRC > >>=20 > > > > I also see the same problem here. Even if you include # -*- coding: u= tf-8 -*- as the first line. > > > > Shouldn't org-babel already be using utf-8 instead of ASCII for input/o= utput? > > > > By the way, with Python3 it doesn't happen since it doesn't need the co= ding:utf-8 declaration anymore. >=20 > Should this be considered a bug, or do we require python 3 for such > things? >=20 I think if the user writes the # -*- coding: utf-8 -*- line, org-mode shoul= d pass it. With that, all Pythons (Python2, Python3) work well, so I wouldn= 't say there's a bug in Python. It would be in org-mode.