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

Re: charsets and mime-type (was Re: Silly Mozilla question.)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-03-14 19:55:04 CET

Jani Averbach wrote:

>On Thu, 13 Mar 2003, Greg Stein wrote:
>
>
>
>>Subversion uses text/plain for the default MIME type in an HTTP response. If
>>the svn:mime-type property is present on the file, then it will use that
>>instead.
>>
>>
>
>I check the book but didn't find clear answer for that:
>What if I set svn:mime-type like that:
>
>svn:mime-type "text/plain; charset=ISO8859-1"
>
>will it work like I suppose (set charset for http response)?
>(I would test this by myself, but I don't have dav server at hand atm.)
>
>
This should work -- at least, I've done it before -- but it's possible
we're a bit more strict about checking the syntax of svn:mime-type now.
Let's see...nope, we're not more strict. All we require is that there's
a "/" ini the prop value, and that it ends with an alphanumeric value.
So yes, you can do that.

(And I seem to recall that we text for textiness by checking if the
value starts with "text/", so that'll work, too.)

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 14 19:59:07 2003

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.