Hello,

I increase audition of the jira OFBIZ-13333 [1], because I search I beautiful fixfor this very embarrassing issue :)


I'm in front of a strange issue with parameter encoding.

On demo-trunk and demo-stable, if you create a new workEfffort from standard from (not from modal with json call), parameters haven't well decoded and if you have a special case the value isn't correct. Example on workEffortName you set a french work Génial and OFBiz store Génial

After some research, I saw that tomcat 9 add a new system to parse URI sent with content-type : application/x-www-form-urlencoded [2]

We can set element '<request-character-encoding>UTF-8</request-character-encoding>' on web.xml. I added it locally on workeffort/web.xml and I confirm this solve the problem.

But interrogation from my side, do we need add this to all webapp, or someone have a better vision on this subject and know a better fix ?

Thanks !

Nicolas

[1] https://issues.apache.org/jira/browse/OFBIZ-13333

[2] https://cwiki.apache.org/confluence/display/TOMCAT/Character+Encoding#CharacterEncoding-Q3

Reply via email to