- From: Aaron Swartz <me@aaronsw.com>
- Date: 21 Sep 2003 10:42:22 -0500
- To: "Francois Yergeau" <FYergeau@alis.com>
- Cc: "WWW-Tag" <www-tag@w3.org>, ietf-xml-mime@imc.org
>> Programming languages are broken as designed?
> In this respect, yes. All programming languages should provide for
> charset
> identification of their source files. Alas, none do, AFAIK.
Python does; it uses an emacs convention:
To define a source code encoding, a magic comment must
be placed into the source files either as first or second
line in the file:
#!/usr/bin/python
# -*- coding: <encoding name> -*-
http://www.python.org/peps/pep-0263.html
--
Aaron Swartz: http://www.aaronsw.com/
Received on Sunday, 21 September 2003 11:42:28 UTC