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

Re: [PATCH] mod_dav_svn directory listing i18n fix, and odd bug

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-07-23 02:53:57 CEST

cmpilato@collab.net wrote:

>Marcus Comstedt <marcus@mc.pp.se> writes:
>
>>Ok, my DAV i18n testing has begun, and so far mostly so good. The
>>directory listing generated when browsing the repository with a web
>>browser fails to set a charset, though. Since the default charset for
>>HTML is ISO-8859-1, filenames do not get displayed correctly. This
>>patch fixes the problem:
>>
>>Index: ./subversion/mod_dav_svn/repos.c
>>===================================================================
>>--- ./subversion/mod_dav_svn/repos.c
>>+++ ./subversion/mod_dav_svn/repos.c Mon Jul 22 19:24:31 2002
>>@@ -1354,7 +1354,7 @@
>> if (resource->info->repos->xslt_uri)
>> mimetype = "text/xml";
>> else
>>- mimetype = "text/html";
>>+ mimetype = "text/html; charset=UTF-8";
>> }
>> else if (resource->info->delta_base != NULL)
>> {
>>
>>
>
>Beautiful!
>
>

Yes, except that we also have to add Content-Transfer-Encoding: 8-bit,
or whatever the header is. I'd vote to add both to the xml case, too,
just to be on the safe side.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 23 02:54:30 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.