Hi,

I encoded some chinese in utf 8 and submit, the data saved to mysql is
garbage, if I encode the data directly into mysql table using a native
client, then display back in t5 app page, it shows correctly, i tried adding
the wiki's approach:
 public RequestFilter buildUtf8Filter(
               @InjectService("RequestGlobals") final RequestGlobals
requestGlobals)
           {
               return new RequestFilter()
               {
                   public boolean service(Request request, Response
response, RequestHandler handler)
                       throws IOException
                   {
                    
                      
requestGlobals.getHTTPServletRequest().setCharacterEncoding("UTF-8");
                       return handler.service(request, response);
                   }
               };
           }

any idea? thanks.

A.C.
-- 
View this message in context: 
http://www.nabble.com/t5%3A-utf8%28chinese%29-in-form-tp15628787p15628787.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to