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

Re: character encoding of file content

From: B Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Mon, 23 Aug 2010 17:42:08 +0200

On Mon, Aug 23, 2010 at 16:23, Mark Phippard <markphip_at_gmail.com> wrote:

> On Mon, Aug 23, 2010 at 10:21 AM, Schroeder, Hartmut
> <Hartmut.Schroeder_at_plath.de> wrote:
>
> > I have a question concerning character encoding of file content.
> >
> > Let's say, we have two text files containing german umlauts and with
> > different file encodings, one file has a 8859-1 encoding and the other
> > UTF-8. Both file are committed to Subversion (on different machines).
> >
> > On a checkout both text files shall have the local encoding (UTF-8,
> > e.g.)
> >
> > Is it possible with Subversion?
>
> Subversion does not record the encoding of files, nor does it try to
> change or convert it. The only thing that Subversion does this for is
> the filename. It stores all path names in UTF-8 and locally they are
> determined by your filesystem and locale.
>
>
Well, there's svn:mime-type, but tools have to know to look for it. The only
one I'm aware of doing so is Apache when one is browsing the contents of a
repository via HTTP.

But, you won't find any automagical character set conversion in Subversion
-- nor (IMHO) should you want to.

// ben
Received on 2010-08-23 17:43:02 CEST

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.