Markus Schönhaber wrote:
... ServletOutputStream is "suitable for writing binary data in the
response" as the docs say. If you want to transmit textual data, use
HttpServletResponse#getWriter() (see my question above).
yes, this really is a point, Georg's answer already pointed me to the
right direction. Nevertheless I must say it's not obvious to me, what
the meaning of 'writing binary data in the response' is. I would have
expected that setting the response's character encoding plus writing to
its output stream would get the encoding right. The java string can not
be written as is (because its java's internal representation of a
string) and the conversion to characters somewhere in the dark behind
the response class could be done correctly, because I did set the encoding.
Well, nevertheless, it works with the getWriter() method as I already
checked. Thank you very much for your help.
Regards,
hk
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]