From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: babel evaluation of python and utf-8 Date: Fri, 04 Jul 2014 16:08:10 +0200 Message-ID: References: <87simrhcyc.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X36hF-00022k-PG for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 12:50:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X36h6-0008SI-Kq for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 12:50:49 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:22743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X36h6-0008S8-DM for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 12:50:40 -0400 In-Reply-To: <87simrhcyc.wl%n142857@gmail.com> (Daniel Clemente's message of "Thu, 26 Jun 2014 23:07:07 +0700") 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: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2014-06-26 18:07, Daniel Clemente writes: >>=20 >> #+BEGIN_SRC python :prefix # -*- coding: utf-8 -*- :results output >> print(u'=C3=A9') >> #+END_SRC >>=20 > > I also see the same problem here. Even if you include # -*- coding: utf= -8 -*- as the first line. > > Shouldn't org-babel already be using utf-8 instead of ASCII for input/out= put? > > By the way, with Python3 it doesn't happen since it doesn't need the codi= ng:utf-8 declaration anymore. Should this be considered a bug, or do we require python 3 for such things? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJTtrVLAAoJEAQNCjtO0uXH1P0H+wUBJnFsqPd+7xmEIAHh4FVP Et0FbTi6gB5GUkTQPJR672SoTuIRa07kvqLAZV4Nm1b9m9/mzmw/7CNeB2CNZBPt 4R1gPJU/4YRxFPy7BIXDXEBZVid+JplmpPGY8c2RP/faii/u4F7XC1Hep0/MSQ4s NLzBSbd3B/TDheLyQHmVLt7BlSMoP7VOYFOdin6/gmkWBhH/6jO2z7lVfVYP/Hs0 2KQzTgC2yvrUZfIkoXEYM5RdA4OlBFhhQA17jJRdSJxWN678LvrCMHbk7DkBjwRs 1AFN8Ky/I/KZvJUSpuISmBvG9pdK+uZxU0cLUG2GuKOsPwfaQL7mTKCGSlhPVWI= =UniB -----END PGP SIGNATURE----- --=-=-=--