tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirko Solic <mirko.so...@arnes.si>
Subject mod_jk codepage in header values
Date Wed, 20 Jan 2010 14:42:58 GMT
Hello,

for connecting tomcat with apache i'm using mod_jk connector. But i'm
having problem with header values. On apache side headers values are in
UTF-8 cp but on tomcat side i have to make conversion from latin-1 cp.
I'm using this code:

for(Enumeration en = request.getHeaderNames(); en.hasMoreElements();){
        header = new Header();
        headerName = (String) en.nextElement();
        header.setHeaderName(headerName);
        header.setHeaderValue(new
String(request.getHeader(headerName).getBytes("ISO-8859-1")));        
        headers.add(header);    

        header = new Header();
        header.setHeaderName(headerName);
        header.setHeaderValue(request.getHeader(headerName));
        headers.add(header);
}


Is it possible to configure mod_jk somehow so that this conversion would
be no longer needed? I went through configuration documentation but i
didn't find nothing that could solve my problem.

Any help will be much appreciated. 


SW versions:
Tomcat 6.0.18
Apache 2.2.3
mod_jk 1.2.28

OS:Linux Centos 5.3

lp mirko 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message