Does Tomcat send content-type using a strange format in header? (Can I change this?)

2009-01-14 Thread Tetsuya

Hello, 

First, I'm sorry for my poor English... 


My Tomcat send content-type like this: 

   Content-Type: text/xml;charset=UTF-8


The separator is ; now. 
But Apache's separator is ; . 

So I want to change it from ; to ; , because some of clients which is
made very strictly don't understand the content-type and don't work well. 


In order to change, which file should I edit? 

Please tell me the way. 


Thank you. 
Tetsuya 
-- 
View this message in context: 
http://www.nabble.com/Does-Tomcat-send-content-type-using-a-strange-format-in-header---%28Can-I-change-this-%29-tp21454890p21454890.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Does Tomcat send content-type using a strange format in header? (Can I change this?)

2009-01-14 Thread Mikolaj Rydzewski

Tetsuya wrote:
My Tomcat send content-type like this: 


   Content-Type: text/xml;charset=UTF-8


The separator is ; now. 
But Apache's separator is ; . 


So I want to change it from ; to ; , because some of clients which is
made very strictly don't understand the content-type and don't work well. 



In order to change, which file should I edit? 
  

There's no simple answer.

Depending on your webapp you can change response content type directly 
in JSP files. You can also implement trivial filter to set appropiate 
content type (or better, to change 'text/xml;charset=UTF-8' into  
'text/xml; charset=UTF-8'.

Google for setcharacterencodingfilter.

--
Mikolaj Rydzewski m...@ceti.pl


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