Mantis - Resin
Viewing Issue Advanced Details
1035 minor always 04-04-06 03:37 04-13-06 09:52
mineral  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.19  
0001035: CGIServlet not do well with CJK encoding
i want to install and deploy awstats tools which written in perl cgi on resin 3.0.18( jdk1.4.2/windows 2000 (Chinese version)/GBK default encoding ).

i had verified the perl script works well and it output the right things ,the html page which contains Chinese character.

but when i use 'http://localhost:8080/awstats.pl?config=localhost', [^] resin show me the right page but error '?????' like characters.

it sees a resin encoding/charset problem.
resin3.0.18 standard
windows 2000 professional (Chinese)
jdk1.4.2 (default encoding gbk,no-iso8859_1)

resin.conf


<web-app-default>
       
       <servlet servlet-name='cgi' servlet-class='com.caucho.servlets.CGIServlet'>
        <init>
        <executable>c:/Perl/bin/perl.exe</executable>
        </init>
       </servlet>
       <servlet-mapping url-pattern='*.cgi' servlet-name='cgi'/>
       <servlet-mapping url-pattern='*.pl' servlet-name='cgi'/>
       <servlet-mapping url-pattern='/cgi-bin/*' servlet-name='cgi'/>
       
     </web-app-default>

      <web-app id="/" document-directory="webapps/resin-doc"/>
      <web-app id='awstats' document-directory='D:\ProjectWork\awstats-6.5\wwwroot\cgi-bin'>
        <character-encoding>GBK</character-encoding>
      </web-app>
      <web-app id='awstatsclasses' document-directory='D:\ProjectWork\awstats-6.5\wwwroot\classes'></web-app>
      <web-app id='awstatscss' document-directory='D:\ProjectWork\awstats-6.5\wwwroot\css'></web-app>
      <web-app id='awstatsicons' document-directory='D:\ProjectWork\awstats-6.5\wwwroot\icon'></web-app>
     

Notes
(0001088)
ferg   
04-13-06 09:52   
server/192v