You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by solo turn <so...@yahoo.com> on 2003/03/11 13:09:12 UTC

utf8 filenames in html browser

svn now even works with utf8 filenames. one little thing seems to be
left there:
if you browse it maybe with internet explorer 6, it is not displayed
correctly. i.e. "�" (e with accent) becomes a sqare on the display.

is there a solution for this, or would this be an issue for svn?

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: utf8 filenames in html browser

Posted by Fumitoshi UKAI <uk...@debian.or.jp>.
Hi,

At Tue, 11 Mar 2003 15:32:48 +0000,
Chris Croome wrote:

> > For example,
> > 
> >  % echo $LANG
> >  ja_JP.eucJP
> >  % echo test > ?????????.txt
> >  % svn add ?????????.txt
> >  A         ?????????.txt
> >  % svn commit -m 'add Japanese filename'
> >  Adding         tmp/?????????.txt
> >  Transmitting file data .
> >  Committed revision 81.
> > 
> > Yes, it's ok to handle Japanese filename with svn command.
> > 
> > But html page of this repository looks like:
> > 
> >  HTTP/1.1 200 OK
> >  Date: Tue, 11 Mar 2003 15:13:05 GMT
> >  Server: Apache/2.0.44 (Debian GNU/Linux) DAV/2 SVN/0.18.1
> >  ETag: "81//tmp"
> >  Accept-Ranges: bytes
> >  Content-Length: 707
> >  Connection: close
> >  Content-Type: text/html; charset=UTF-8
> 
> It the fact that this is served as UTF-8 and the file name is EUC-JP
> something to do with the problem?

I don't think so.  svn convert filename from native encoding (in this
case EUC-JP) to UTF-8 and submit it, doesn't it?

Actually I committed テスト2.txt in ja_JP.UTF-8, html looks like

  <li><a href="%c3%a3%c2%83%c2%86%c3%a3%c2%82%c2%b9%c3%a3%c2%83%c2%882.txt">???????????????????2.txt</a></li>

0000000           <   l   i   >   <   a       h   r   e   f   =   "   %
0000020   c   3   %   a   3   %   c   2   %   8   3   %   c   2   %   8
0000040   6   %   c   3   %   a   3   %   c   2   %   8   2   %   c   2
0000060   %   b   9   %   c   3   %   a   3   %   c   2   %   8   3   %
0000100   c   2   %   8   8   2   .   t   x   t   "   > 303 243 302 203
0000120 302 206 303 243 302 202 302 271 303 243 302 203 302 210   2   .
0000140   t   x   t   <   /   a   >   <   /   l   i   >  \n
0000155

 UTF-8  343 203 206 343 202 271 343 203 210	(octal)
        e3  83  86  e3  82  b9  e3  83  88	(hexadecimal)

mod_dav_svn
        303 243 302 203 302 206 303 243 302 202 302 271 303 243 302 203 302 210
        c3  a3  c2  83  c2  86  c3  a3  c2  82  c2  b9  c3  a3  c2  83  c2  88

Regards,
Fumitoshi UKAI

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: utf8 filenames in html browser

Posted by Chris Croome <ch...@webarchitects.co.uk>.
Hi

On Wed 12-Mar-2003 at 12:28:11AM +0900, Fumitoshi UKAI wrote:
> 
> At Tue, 11 Mar 2003 13:26:06 +0000,
> Chris Croome wrote:
> 
> > On Tue 11-Mar-2003 at 05:09:12AM -0800, solo turn wrote:
> > > svn now even works with utf8 filenames. one little thing seems to
> > > be left there: if you browse it maybe with internet explorer 6, it
> > > is not displayed correctly. i.e. "?" (e with accent) becomes a
> > > sqare on the display.
> > > 
> > > is there a solution for this, or would this be an issue for svn?
> > 
> > This is not an issue for svn it's a user agent / os issue.
> 
> Well, but there is an issue for svn to support other than latin characters.
> On LANG=ja_JP.eucJP, I can commit file with Japanese filename in EUC-JP
> encoding and handle it by svn command line, but html pages via mod_dav_svn
> shows broken filename.

OK, I was wrong :-)

> For example,
> 
>  % echo $LANG
>  ja_JP.eucJP
>  % echo test > ?????????.txt
>  % svn add ?????????.txt
>  A         ?????????.txt
>  % svn commit -m 'add Japanese filename'
>  Adding         tmp/?????????.txt
>  Transmitting file data .
>  Committed revision 81.
> 
> Yes, it's ok to handle Japanese filename with svn command.
> 
> But html page of this repository looks like:
> 
>  HTTP/1.1 200 OK
>  Date: Tue, 11 Mar 2003 15:13:05 GMT
>  Server: Apache/2.0.44 (Debian GNU/Linux) DAV/2 SVN/0.18.1
>  ETag: "81//tmp"
>  Accept-Ranges: bytes
>  Content-Length: 707
>  Connection: close
>  Content-Type: text/html; charset=UTF-8

It the fact that this is served as UTF-8 and the file name is EUC-JP
something to do with the problem?

Chris

-- 
Chris Croome                               <ch...@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
everything else                               http://chris.croome.net/  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: utf8 filenames in html browser

Posted by Fumitoshi UKAI <uk...@debian.or.jp>.
Hi,

At Tue, 11 Mar 2003 13:26:06 +0000,
Chris Croome wrote:

> On Tue 11-Mar-2003 at 05:09:12AM -0800, solo turn wrote:
> > svn now even works with utf8 filenames. one little thing seems to
> > be left there: if you browse it maybe with internet explorer 6, it
> > is not displayed correctly. i.e. "?" (e with accent) becomes a
> > sqare on the display.
> > 
> > is there a solution for this, or would this be an issue for svn?
> 
> This is not an issue for svn it's a user agent / os issue.

Well, but there is an issue for svn to support other than latin characters.
On LANG=ja_JP.eucJP, I can commit file with Japanese filename in EUC-JP
encoding and handle it by svn command line, but html pages via mod_dav_svn
shows broken filename.

For example,

 % echo $LANG
 ja_JP.eucJP
 % echo test > テスト.txt
 % svn add テスト.txt
 A         テスト.txt
 % svn commit -m 'add Japanese filename'
 Adding         tmp/テスト.txt
 Transmitting file data .
 Committed revision 81.

Yes, it's ok to handle Japanese filename with svn command.

But html page of this repository looks like:

 HTTP/1.1 200 OK
 Date: Tue, 11 Mar 2003 15:13:05 GMT
 Server: Apache/2.0.44 (Debian GNU/Linux) DAV/2 SVN/0.18.1
 ETag: "81//tmp"
 Accept-Ranges: bytes
 Content-Length: 707
 Connection: close
 Content-Type: text/html; charset=UTF-8

 <html><head><title>Revision 81: /tmp</title></head>
 <body>
  <h2>Revision 81: /tmp</h2>
  <ul>
   <li><a href="../">..</a></li>
   <li><a href="%c2%a5%c3%86%c2%a5%c2%b9%c2%a5%c3%88.txt">????????????.txt</a></li>
  </ul>
  <hr noshade><em>Powered by <a href="http://subversion.tigris.org/">Subversion</a> version 0.18.1 (r5118).</em>
 </body></html>

where the line テスト.txt is:
0000000           <   l   i   >   <   a       h   r   e   f   =   "   %
0000020   c   2   %   a   5   %   c   3   %   8   6   %   c   2   %   a
0000040   5   %   c   2   %   b   9   %   c   2   %   a   5   %   c   3
0000060   %   8   8   .   t   x   t   "   > 302 245 303 206 302 245 302
0000100 271 302 245 303 210   .   t   x   t   <   /   a   >   <   /   l
0000120   i   >  \n

Note that テスト is
 EUC-JP	245 306 245 271 245 310 		(octal)
        a5  c6  a5  b9  a5  c8			(hexadecimal)
 UTF-8  343 203 206 343 202 271 343 203 210	(octal)
        e3  83  86  e3  82  b9  e3  83  88	(hexadecimal)

Why mod_dav_svn output as below?
        302 245 303 206 302 245 302 271 302 245 303 210 	(octal)
        c2  a5  c3  86  c2  a5  c2  b9  c2  a5  c3  88		(hexadecimal)

Regards,
Fumitoshi UKAI

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: utf8 filenames in html browser

Posted by Chris Croome <ch...@webarchitects.co.uk>.
Hi

On Tue 11-Mar-2003 at 05:09:12AM -0800, solo turn wrote:
> svn now even works with utf8 filenames. one little thing seems to
> be left there: if you browse it maybe with internet explorer 6, it
> is not displayed correctly. i.e. "?" (e with accent) becomes a
> sqare on the display.
> 
> is there a solution for this, or would this be an issue for svn?

This is not an issue for svn it's a user agent / os issue.

I get the same thing with WindowMaker but if I switch to the latest
gnome window manager for RedHat there is not a problem -- your
problem might only happen on Windows older than XP (I don't know
much about Windows but XP is better with UTF-8 than other versions)?

Chris

-- 
Chris Croome                               <ch...@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
everything else                               http://chris.croome.net/  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org