You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Panagiotis Konstantinidis <pa...@softways.gr> on 2002/10/25 17:41:50 UTC

Problem with org.apache.jk.server.JkCoyoteHandler (jk2)

We had problem sending HTTP headers containing Greek characters
(ISO-8859-7). 

After browsing the sources, I reached JkCoyoteHandler class (jk2), and
specifically appendHead(org.apache.coyote.Response res) method where it
constructs a C2BConverter object like this :


private void appendHead(org.apache.coyote.Response res) {
....
....
....
  C2BConverter c2b = (C2BConverter)res.getNote( utfC2bNote );        
  if( c2b == null ) {
    c2b = new C2BConverter(  "UTF8" );
    res.setNote( utfC2bNote, c2b );
  }
....
....
}

It allways converted the headers in UTF8 encoding which messed up my
Greek charactes (ISO-8859-7).

I changed the method to something like this :

C2BConverter c2b = new C2BConverter( res.getCharacterEncoding() );

which seems to work just fine.

Panagiotis Konstantinidis
Software Engineer
........................................
Softways Hellas Internet Development S.A
(http://www.softways.gr/)



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


If you know........................ Thanks !

Posted by Correo <he...@ar.inter.net>.
I all.
I'm using Tomcat on win98
Have a problem when call my class error:404 !!!!
My class are in :

Tomcat 4.1/webapps/servlet1/web-inf/classes/st/Servlet1.class
 
How call in a brobser my class?
Where put Servlet1.shtml?

I send Servlet1.java  and web.xml to you see.

I'm new in Tomcat !!!!!!

Thank for all and excuse my English...I from Argentina.






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>