Re: [viewvc-users] I18N: Can't browsing file/directory which contains Chinese; timezone name displayed malformed
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
On 11/15/2010 10:54 PM, LiuYan 刘研 wrote: > 1. Can't browsing file/directory which contains Chinese > > There are Chinese characters in file/directory name, when browsing these files/directories, browser will display someting like the following: > > An Exception Has Occurred > Unknown location: /dev/2006-10-08 ?oo??????????????? > > HTTP Response Status > 404 Not Found > > I also setup mod_dav_svn under this URL > http://192.168.105.4:8000/svn/cmcc/ > It's ok when using mod_dav_svn to browsing files/directories which contains chinese characters. > > I searched viewvc.conf, I can't find a file/directory encoding config item. You won't find such a thing in viewvc.conf. Is ViewVC running as a CGI script? If so, it will interact with the system using whatever locale is in use by the environment in which it is running. In my experience, Apache runs scripts using some i18n-clueless locale like "C". Ah! Maybe this post explains it: http://www.webservertalk.com/message2293179.html If that's accurate, then perhaps you need to use SetEnv to configure your script environment for use with Chinese encodings. I honestly have no idea how to do this in Windows, but in Linux, it would be something like: SetEnv LC_ALL zh_CN.GBK > 2. Timezone name displayed malformed when browsing log of file > I set 'use_localtime = 1' to use China Standard Time (which in Chinese it's 中国标准时间), I believe '中国标准时间' is encoded in GBK encoding, and viewvc use UTF-8 encoding to encode web pages, so GBK charactesr and UTF-8 characters can't displayed well at the same time/page. > > Added Tue Nov 09 17:34:12 2010 �й���ʱ�� (6 days, 18 hours ago) > > Is there a way to config timezone name encoding? > AND, is there a way to config datetime format? such as yyyy-MM-dd hh:mm:ss Sorry, no -- these things aren't configurable in ViewVC at this time. ViewVC clearly doesn't offer full i18n/l10n support. Part of the problem is that it began as a CVS viewer only, and CVS itself is i18n-ignorant. Subversion makes this situation better, but ultimately ViewVC is what it is -- a web tool forced to choose a single output character set to display the merged results of several different, potentially-encoding-differing streams of information, where one or more of those streams usually offers no hints as to its encoding. In short, it's an i18n nightmare. :-( -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2686631 To unsubscribe from this discussion, e-mail: [[email protected]].