Re: [Orgmode] Babel, Python and UTF-8

2010-12-01 Thread Eric Schulte
Hi Vincent,

I would suggest just trying it out first and seeing if you get an error
without such a line.  Also, you could try adding the line to the
beginning of your code block.

If there is definitely a problem please reply to this thread and we
could easily add a header argument for this case, possibly named
":prefix" which could be used to specify such a code-block-prefix for
code evaluation.  This header argument could then be set globally or on
the file, heading, or code block level.

Best -- Eric

Vincent Beffara  writes:

> 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
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Babel, Python and UTF-8

2010-12-01 Thread Vincent Beffara

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


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode