httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LiuYan 刘研 <>
Subject [users@httpd] Re: mod_cgi: multibyte characters in REQUEST_URI can't converted to correct PATH_INFO
Date Thu, 16 Dec 2010 10:06:37 GMT
William A. Rowe Jr. <wrowe <at>> writes:

> On 12/1/2010 9:31 AM, LiuYan 刘研 wrote:
> > Recently I setup Apache-2.2.17 on Windows Server 2003, and config viewvc in 
> > mode, viewvc works fine except browsing repository entry which contains 
> > characters, it will return HTTP 404 when browsing these entryies, I asked 
> > viewvc-users mailing list, they said CGI will interact with system using 
> > locale is in use by the environment in which it's running( 
> >
dsForumId=4255&dsMessageId=2686631 ).
> If you set up viewvc's CGI host to run under the utf-8 code page, things 
> work correctly.  On win32, all file names are unicode, and httpd and dav then
> represent these as utf-8.

Thank you William!

I don't how to set default windows code page to UTF-8, there's no UTF-8 in 
ControlPanel--Locale/Language--Advanced, I try change code page to 65001(UTF-8) 
in DOS prompt window, and run httpd.exe in DOS prompt window, but I got same 
cd Apache\bin
chcp 65001

There's a similar article/question on,

Although he use ColdFusion on IIS, but he encountered exactly same problem. And 
one answer figured out the cause, but I'm not sure if it's right.

part of that answer:
However most byte-based tools using the C stdio (and I'm assuming this applies 
to ColdFusion, as it does under Perl, Python 2, PHP etc.) then try to read the 
environment variables as bytes, and the MS C runtime encodes the Unicode 
contents again using the Windows default code page. So any characters that 
don't fit in the default code page are lost for good. This would include your 
Arabic characters when running on a Western Windows install.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message