users@glassfish.java.net

Re: why the default response character encoding must be ISO-8859-1?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Tue, 17 Mar 2009 18:37:47 +0100

you can declare the encoding of the application :
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqHttpRequestParameterEncoding

* I am facing the same issue today :)

2009/3/17 Felipe Gaúcho <fgaucho_at_gmail.com>:
> fro Glassfish, the following steps are used to set the encoding:
>
>  *      The getCharacterEncoding() method
>   *      A hidden field in the form, specified by the
> form-hint-field attribute of the parameter-encoding element in the
> sun-web.xml file
>   *      The default-charset attribute of the parameter-encoding
> element in the sun-web.xml file
>   *      The default, which is ISO-8859-1
>
> On Tue, Mar 17, 2009 at 5:27 PM, Ken--_at_newsgroupstats.hk
> <dragonken_at_gmail.com> wrote:
>>
>> I am trying to migrate my webapps from tomcat 6.0 to glassfish v3... but I
>> found the my utf-8 pages are not working well with gf3.
>>
>> my jsps like this:
>>
>> <%_at_page contentType="text/html"%>
>> <html>
>> <head>
>> <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=utf-8">
>> <title>...</title>
>> </head>
>> <body>
>> content
>> </body>
>> </html>
>>
>> Those pages are working well with apache + tomcat 6.0 but with gf3, Chinese
>> characters are distorted and I have to right click and manually adjust the
>> Encoding to Unicode (UTF-8) to display Chinese words correctly. I checked
>> that the page encoding was somehow adjusted to iso-8859-1.
>>
>> I remember that exactly same problem was happened with tomcat 5.0.28.
>>
>> Any idea?
>>
>> Ken
>>
>>
>>
>> --
>> View this message in context: http://www.nabble.com/why-the-default-response-character-encoding-must-be-ISO-8859-1--tp22562986p22562986.html
>> Sent from the java.net - glassfish users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
>
>
> --
>
> Please help to test this application:
> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>



-- 
Please help to test this application:
http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces