You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Schroeder, Hartmut" <Ha...@plath.de> on 2010/08/23 14:21:16 UTC

character encoding of file content

Hi,
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?



Regards, Hartmut

Re: character encoding of file content

Posted by B Smith-Mannschott <bs...@gmail.com>.
On Mon, Aug 23, 2010 at 16:23, Mark Phippard <ma...@gmail.com> wrote:

> On Mon, Aug 23, 2010 at 10:21 AM, Schroeder, Hartmut
> <Ha...@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

Re: character encoding of file content

Posted by Mark Phippard <ma...@gmail.com>.
On Mon, Aug 23, 2010 at 10:21 AM, Schroeder, Hartmut
<Ha...@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.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/