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

Reply via email to