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

Re: Fun with svn:mime-type

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-08-08 05:39:53 CEST

On Wed, 2002-08-07 at 15:59, Branko ╚ibej wrote:
> * Why would the browser ignore the <meta> tag? I thought it was
> supposed to override whatver the HTTP Content-Type header contains...

From section 5.2.2 of the HTML 4.01 spec:

  To sum up, conforming user agents must observe the following
  priorities when determining a document's character encoding (from
  highest priority to lowest):

   1. An HTTP "charset" parameter in a "Content-Type" field.
   2. A META declaration with "http-equiv" set to "Content-Type" and a
      value set for "charset".
   3. The charset attribute set on an element that designates an
      external resource.

I think the fundamental problem with the META tag is that your document
needs to be in an ASCII-compatible character set to use it. So the HTTP
header is considered superior, and the META tag is mostly there because
HTML documents aren't necessarily transmitted over HTTP.

> * Is just adding the encoding to svn:mime-type the correct slution,
> or should I use it only as a temporary hack? Should we introduce a
> svn:encoding property instead?

No idea here; maybe Greg has an opinion.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 8 05:40:29 2002

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.