From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Beffara Subject: Babel, Python and UTF-8 Date: Thu, 02 Dec 2010 00:50:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=37827 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNwkU-000077-8K for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 19:10:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNwkQ-0007Hj-91 for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 19:10:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:33167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNwkQ-0007H2-3J for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 19:10:06 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PNwkO-0000DZ-IO for emacs-orgmode@gnu.org; Thu, 02 Dec 2010 01:10:04 +0100 Received: from cxr69-3-82-225-61-110.fbx.proxad.net ([82.225.61.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 01:10:04 +0100 Received: from vbeffara by cxr69-3-82-225-61-110.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 01:10:04 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I am discovering org-mode and org-babel, and wanted to try it out with python code blocks. My use case would involve text processing, encoded as UTF-8. Usually a python file has to contain a line to that effect, saying sth like # -*- coding: utf-8 -*- (without which an error is raised). Is there a way to manage that during org-babel block evaluation ? Thanks for your help ! /v