PythonTidy
Richie Hindle
richie at entrian.com
Thu Nov 30 08:50:29 EST 2006
[Roberto]
> # vim: set fileencoding=utf-8 :
> ...
> # -*- coding: utf-8 -*-
> ...
> About changing the encoding declaration from vim-style to emacs-style:
> I'll take it as an insult :)
[Laurent]
> This is not "emacs-style", this is Python normalized source encoding
> directive for correct interpretation of u"..." strings by Python
> interpreter.
So is "# vim: set fileencoding=utf-8". Anything matching
"coding[:=]\s*([-\w.]+)" on the first or second line counts.
> See http://www.python.org/dev/peps/pep-0263/
Yes, you should. 8-)
--
Richie Hindle
richie at entrian.com
More information about the Python-list
mailing list