We are actually going to just use UTF-8 which should work fine. We didn't realize UTF8 can still represent all the characters of UTF-16, albeit a bit less efficiently.
See http://www.javaworld.com/javaworld/jw-04-2004/jw-0419-multibytes.html . That is actually a great article to read if you are ever in character encoding HELL. Basically, IE always encodes the post as UTF-8 if the page's content type is UTF-16, since IIS (and possibly other web servers) flat out do not understand UTF-16. So I've told stripes to encode AND decode as UTF-16, but it will have to decode as UTF-8. UTF-16 characters in GET links is not possible at all.. This whole thing is flat out ridiculous. Thanks for your help though.. I'm off to go bang my head against the wall. -----Original Message----- From: Oscar Westra van Holthe - Kind [mailto:[email protected]] Sent: Friday, January 30, 2009 4:05 PM To: Stripes Users List Subject: Re: [Stripes-users] Help with UTF-16 - can't post On 30-01-2009 at 12:39, Newman, John W wrote: > Hello, > > The app we are currently developing has to support UTF-16LE. I've got all > of our pages rendering correctly, this was a small challenge in itself. > However when I do a post request, the parameter names and values are not > encoded correctly, just a bunch of square blocks. =) I had this problem myself one time. The correct locale was selected and all. In my case, it turned out that the problem was Tomcat, combined with a filter mapped to a servlet (instead of to a URL pattern). In bypassing the need to repeat all URL patterns for the Stripes servlet, I mapped the StripesFilter directly to the DispatcherServlet. As it happens, Tomcat parses the request using the (then) request character encoding to interpret the request to determine the filter and/or servlet to invoke. But the correct encoding is set in the StripesFilter, which happened later than that. Mapping the filter to the URL patterns fixed my problem. -- ,-_ Oscar Westra van holthe - Kind http://www.xs4all.nl/~kindop/ /() ) (__ ( Inequality is the inevitable consequence of liberty. =/ () -- Salvador De Madariaga - "Anarchy or Hierarchy" (1937) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
