[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Text mime types

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-06-12 07:17:37 CEST

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
> >file encoding.
>
> No. The example "file-in-utf8.txt.gz" is an example of one encoding
> within another.

gzip is an encoding, but not a MIME type. From /etc/mime.types under
Debian:

# 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.

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 12 07:18:32 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.