[Python-Dev] PEP: Defining Python Source Code Encodings

Michael Hudson mwh@python.net
17 Jul 2001 11:14:11 -0400


"M.-A. Lemburg" <mal@lemburg.com> writes:

> - which format to use for the magic comment, e.g.
> 
>   * Emacs style:
> 
>       #!/usr/bin/python
>       # -*- encoding = 'utf-8' -*-

Emacs already has a name for this; you'd write that

# -*- coding: utf-8; -*-

Seems reasonable to me.

Cheers,
M.

-- 
  We've had a lot of problems going from glibc 2.0 to glibc 2.1.
  People claim binary compatibility.  Except for functions they
  don't like.                       -- Peter Van Eynde, comp.lang.lisp