tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone - Dev" <simo-...@piyosailing.com>
Subject R: How to implement setCharacterEncoding in Tomcat 4.1.x
Date Sat, 12 Jun 2004 13:10:23 GMT
OK, thank you very much
Does it "re-encode" the text using 2 bytes per char as with real UTF
encoding?

Simone

-------------------------
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"


> -----Messaggio originale-----
> Da: news [mailto:news@sea.gmane.org] Per conto di Bill Barker
> Inviato: sabato 12 giugno 2004 7.19
> A: tomcat-user@jakarta.apache.org
> Oggetto: Re: How to implement setCharacterEncoding in Tomcat 4.1.x
> 
> 
> You can use:
>     response.setContentType("text/xml; charset=utf-8");
> This works for TC 3-5.
> 
> "Simone - Dev" <simo-dev@piyosailing.com> wrote in message 
news:00b001c44ffb$bd1852d0$667ba8c0@mobilesimo...
> Hello all,
> I made a servlet that generates a XML response that must be in UTF-8 
> because it can include any type of chars (Jap, Arabs, chinese, russian

> and so on) I developed it on Tomcat 5.0.x and I used, to set the 
> correct encoding, the method setCharacterEncoding before calling the 
> out.getWriter and everything works fine.
>
> But a developer (this servlet is part of an open source project 
> available on sf.net) said that with tomcat 4.1.x it doesn't work 
> (raise a NoSuchMethodError). I looked at the tomcat 4.1.x javadoc and 
> saw that this method is not implemented since tomcat 5.0.x
>
> Since I'd like to support 4.1.x too how can I do to obtain the same 
> functionality?
>
> Thank you
> Simone
>
> -------------------------
> Simone Chiaretta
>  <http://www.piyosailing.com/S> www.piyosailing.com/S
> Any sufficiently advanced technology is indistinguishable from magic 
> "Life is short, play hard"
>
>




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


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


Mime
View raw message