why repository name should not be utf-8 ?

tianxiawuzhe
tianxiawuzhe
I installed subversion-1.9.5, httpd-2.4.25(and dependencies) on SUSE Linux. I want to visit svn by http://. Now, I can visit http://ip:port/svn/ if name is english chars. Whent i create a new repository with name UTF-8 encoded (e.g chinese char), client will show HTTP 500 internal error, and httpd's log show like this: # [:error] [pid 10201] (20014) internal error (specific information not available): [client ] Can't convert string from 'UTF-8' to natvie encoding: # [:error] [pid 10201] (20014) internal error (specific information not available): [client ] /svndata/Repositories/{U+6D4B}{U+8BD5}/format # [dav:error][pid 10201][client ] Could not fetch resource information. [500, #0] # [dav:error][pid 10201][client ] Could not open the requested SVN filesystem [500, #22] # [dav:error][pid 10201][client ] Could not open the requested SVN filesystem [500, #22] it seems that, httpd's encoding and svn encoding (UTF-8) are not matched, and repository name conversion failed. I searched this error, they are all happened in 'svn update' or 'svn co', but my situation is server error, not client error. So, I do not known how to resolve this problem. please help me~~

Last updated

DougR
DougR
What version of SUSE are you running? What is the value of your "LANG" environment variable? What command did you run? (please be explicit although you should change hostnames, etc. to be anonymous.
tianxiawuzhe
tianxiawuzhe
DougR;n79833What version of SUSE are you running? What is the value of your "LANG" environment variable? What command did you run? (please be explicit although you should change hostnames, etc. to be anonymous.
  Thanks, SUSE Linux Enterprise Server 12 SP2, Release 12.2, LANG=zh_CN.utf8 (I tested zh_CN.UTF-8, the same error), LC_ALL=zh_CN.utf8, httpd.conf added one line 'AddDefaultCharset utf-8'.  'svn co http://xxx:9001/svn/' on linux command, should say 'svn: E170000: 无法识别的URL方案(invalid URL)', and 'svn co svn://xxx:9000/' on linux command is ok, so I guest, the httpd.conf's config 'AddDefaultCharset utf-8' is not correct? or some configs missing ? Thanks again.
tianxiawuzhe
tianxiawuzhe
tianxiawuzhe;n79834  Thanks, SUSE Linux Enterprise Server 12 SP2, Release 12.2, LANG=zh_CN.utf8 (I tested zh_CN.UTF-8, the same error), LC_ALL=zh_CN.utf8, httpd.conf added one line 'AddDefaultCharset utf-8'. 'svn co http://xxx:9001/svn/' on linux command, should say 'svn: E170000: 无法识别的URL方案(invalid URL)', and 'svn co svn://xxx:9000/' on linux command is ok, so I guest, the httpd.conf's config 'AddDefaultCharset utf-8' is not correct? or some configs missing ? Thanks again.
  Some one write one log, can use 'SVNUseUTF8 On' directive after svn 1.8 in httpd.conf file, and I tried, it's ok now. Thank you very much~~~
DougR
DougR
That's EXCELLENT news! Thank you for sharing!

1-5 of 5

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.