Hello,
Please have a look at the Encoding topic on this page. I have invested some time to
have a look into the problem and it seems, that i18n regarding the encoding is not a
problem on the nukes side so far as I know. You have only to add the appropriate
encoding to the response in PageResult.java so Tomcat is able to encode the response
appropriately.
By doing this, you only get question marks in the response. If you disable the gzip
filter in the web.xml, you get encoded characters, but not in UTF-8 in my case. GZip,
are there problems with 7-bit 8-bit transformation?
You can do a simple modification to NukesServlet and override the doGet() method by
simply output your characters:
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws
ServletException, IOException
| {
| resp.setContentType("text/html; charset=UTF-8");
|
| Writer out = resp.getWriter();
| out
| .write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\">");
| out.write("<HTML>");
| out.write(" <HEAD><TITLE>Encoding Servlet</TITLE></HEAD>");
| out.write(" <BODY>");
| out.write(" <H1>Hallo, - ÃÂber meinem Haupt ist der Himmel</H1>");
| out.write(" </BODY>");
| out.write("</HTML>");
| out.flush();
| out.close();
|
This code in a simple servlet deployed on Tomcat 4 or 5 outputs the right characters.
But the code above does not output the right characters. But I have no glue where is
the difference between disabling all relevant filters in nukes and the servlet
deployed in Tomcat.
Probably you have some idea?
Regards,
Cyrill
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838284#3838284
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838284
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development