W3C home > Mailing lists > Public > www-tag@w3.org > September 2003

Re: Requesting a revision of RFC3023

From: Aaron Swartz <me@aaronsw.com>
Date: 21 Sep 2003 10:42:22 -0500
Message-Id: <3118DB85-EC4A-11D7-BAAC-0003936780B2@aaronsw.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:47:21 GMT