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 have added
            <init-param>
                  <param-name>LocalePicker.Locales</param-name>
                  <param-value>en_US:UTF-16LE</param-value>
            </init-param>
To web.xml.


I also have <meta http-equiv="Content-Type" content="text/html; 
charset=UTF-16LE" /> at the top of every page, and freemarker servlet is all 
set to UTF-16LE.

In the logs I see:

12:12:40,229 INFO  [STDOUT] 12:12:40,229 DEBUG StripesFilter:194 - Intercepting 
request to URL: /patient/search
12:12:40,229 INFO  [STDOUT] 12:12:40,229 DEBUG StripesFilter:183 - LocalePicker 
selected locale: en_US
12:12:40,229 INFO  [STDOUT] 12:12:40,229 DEBUG StripesFilter:183 - LocalePicker 
selected character encoding: UTF-16LE  < YES

Looking at the code for stripes filter, I see this statement just before the 
logging above:

                    httpRequest.setCharacterEncoding(encoding);

so the request character encoding is set to UTF-16LE as I need it to be. BUT 
the post isn't getting in correctly,

12:12:40,276 INFO  [STDOUT] 12:12:40,276 DEBUG 
DefaultActionBeanPropertyBinder:194 - Running binding for property with name: ??
12:12:40,276 INFO  [STDOUT] 12:12:40,276 DEBUG 
DefaultActionBeanPropertyBinder:183 - Could not bind property with name [??] to 
bean of type: PatientSearch : Bean class 
com.upmc.cancercenters.pathways.core.PatientSearch does not contain a property 
called '??'. As a result the following expression could not be evaluated: ??
12:12:40,276 INFO  [STDOUT] 12:12:40,276 DEBUG 
DefaultActionBeanPropertyBinder:194 - Running binding for property with name: 
?????
12:12:40,291 INFO  [STDOUT] 12:12:40,291 DEBUG 
DefaultActionBeanPropertyBinder:183 - Could not bind property with name [?????] 
to bean of type: PatientSearch : Bean class 
com.upmc.cancercenters.pathways.core.PatientSearch does not contain a property 
called '?????'. As a result the following expression could not be evaluated: 
?????
....


So what am I missing here?  Anyone ?  Please help!  I have tried adding 
acceptcharset="UTF-16LE" to the form tags and it didn't have any effect..

Thanks!

------------------------------------------------------------------------------
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

Reply via email to