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

Re: How does subversion handle encodings?

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-06-28 19:00:01 CEST

* Marcus Sundman <sundman@iki.fi> [2004-06-28 04:12]:
> > Subversion, by default, will never touch file contents, period. No EOL
> > conversions, no keyword expansions, no nothing. By default, Subversion
> > treats all file contents as opaque collections of bytes.
> >
> > [...]
> >
> > * Subversion does absolutely nothing in terms of trying to understand
> > the encoding of a file's text (ascii vs. ucs2 vs. utf8, etc.) Bytes are
> > bytes. At most, it will change line-endings if you ask.
> >
> > Does that answer your questions?
>
> Mostly, although it was not the answer I was hoping for.
> One thing is still not clear: Can subversion have a "type" metadata
> associated with each file? (Not storing that crucial piece of info would be
> really, really stupid since that would render most text files useless as
> text files. That is, unless you send that piece of info in some other way
> to everyone using those text files.)

Yep, check out the svn:mime-type property:
http://svnbook.red-bean.com/svnbook/ch07s02.html#svn-ch-7-sect-2.3.2

-- Mike

-- 
Michael W. Thelen
Experience is what you get when you don't get what you want.
                -- Dan Stanford

Received on Mon Jun 28 19:02:43 2004

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

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