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

Re: About character encoding of the text files

From: Matthew Bentham <mjb67_at_artvps.com>
Date: Wed, 25 Aug 2010 17:27:16 +0100

On 25/08/2010 17:01, Ivan Cenov wrote:
> ???? 25.8.2010 ??. 08:54, B Smith-Mannschott ????????????:
>> The property svn:mime-type carries charset information as an
>> additional field:
>>
>> $ svn propset svn:mime-type "text/plain;charset=Windows-1251"
>> file1.txt file2.txt ...
>>
>> // ben
>>
>
> Hi, I tried with
> *
> svn:*mime*-type* text/plain; charset=Windows-1251
> and
> *svn:mime-type* text/plain; charset=windows-1251
> and
> *svn:mime-type* text/plain;charset=windows-1251
> and
> *svn:mime-type* text/plain; charset=Windows-1251
>
> on a file d.c but without success. ViewVC continued to show ???? instead
> of cyrillic letters.
>
> Well, Subversion supplies the information. It is up to ViewVC to deal
> with it...
>
> From my point of view, it would be better a dedicated property to be
> defined.
> svn:charset is only an example.
>

Maybe, but doing it this way is consistent with the way that the charset
is included in the "Content-Type" http header alongside the mime type,
described eg. here:

http://www.w3.org/International/O-HTTP-charset

It makes sense to include it alongside the mime-type, because it's only
valid to set it if the document is of type 'text', eg. text/plain or
text/html.

Matthew
Received on 2010-08-25 18:27:56 CEST

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