[EMAIL PROTECTED] wrote: > Markus Schönhaber wrote: > > Works fine for me. > Well, that is really a surprise for me. I tried this in 3 different > operating systems and it was consequently wrong.
That, in turn, doesn't surprise me, since... > > You do call response#setContentType before response#getWriter, don't you? > > There's no filter changing things? > Well, the code is more or less trivial: the class extends HttpServlet > and overwrites method doGet like this: > > @Override > protected void doGet( HttpServletRequest request, > HttpServletResponse response ) > throws ServletException, IOException > { > response.setContentType( "text/html;charset=UTF-8" ); > response.setCharacterEncoding( "utf-8" ); > > ServletOutputStream out = response.getOutputStream(); ... 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). Regards mks --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]