[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: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2004-06-28 12:56:42 CEST

Marcus Sundman wrote:
> On Thursday 24 June 2004 17:35, Ben Collins-Sussman wrote:
> > * 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?

I believe you can have 'properties' attached to a file. You'd just have to
make other tools agree to honor these properties.

> (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.)

I'd vote for "always use UTF-8" for files that need more than ASCII. That way
you're fine. Maybe adding a three-byte marker (codepoint 0xfeff encoded in
UTF-8) at the beginning of the file would help, too, as it's common practice
and understood by many tools.

just my 2cc

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 28 12:58:20 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.