Vincent Lefevre wrote:
> On 2005-06-11 23:18:53 +0100, Julian Foad wrote:
>>Vincent Lefevre wrote:
>>>We would need a keyword for charset encoding and a keyword for
>>>file encoding. For instance, a file file-in-utf8.txt.gz would
>>>have a text/plain MIME type, a utf8 charset encoding and a gzip
>>No. The example "file-in-utf8.txt.gz" is an example of one encoding
> gzip is an encoding, but not a MIME type. From /etc/mime.types under
> # Note: Compression schemes like "gzip", "bzip", and "compress" are not
> # actually "mime-types". They are "encodings" and hence must _not_ have
> # entries in this file to map their extensions. The "mime-type" of an
> # encoded file refers to the type of data that has been encoded, not the
> # type of the encoding.
> So, svn:mime-type should contain text/plain and there should be a way
> to specify the file encoding (compression scheme). "utf8" is not an
> encoding in the MIME sense.
Hmm... I can't see how that would work in general. It could have made sense in
MIME's original context - attachments to email messages - where the compression
was perhaps temporary, to be automatically undone at the end of the transfer,
but I can't see that making sense where MIME types are used more generally to
describe arbitrary files. For example, what about a Zip (as in PKZIP) file?
That's a combination of compression and multi-file archiving. A single MIME
type can't represent the content of all the different files in the Zip archive,
so Zip would have to have its own MIME type. Then a single UTF8 file Zipped
would have a MIME type of "Zip", and a single UTF8 file gzipped would have a
MIME type of "UTF8 text". Maybe that's how it is, but that seems awfully ugly
to me and I don't imagine at the moment that that would be the right thing for
Subversion to do.
I'll try to read up on the standards and the current best practices on using
MIME types to get a better understanding of the issue, but I may not get around
to it any time soon.
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Sun Jun 12 14:16:34 2005