[
https://issues.apache.org/jira/browse/OFBIZ-13333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050322#comment-18050322
]
Nicolas Malin commented on OFBIZ-13333:
---------------------------------------
hello, thanks for your tips !
I added
{code:java}
<request-character-encoding>UTF-8</request-character-encoding>
<response-character-encoding>UTF-8</response-character-encoding> {code}
on framework/catalina/config/web.xml from my side and this work like a charm.
[~deepak] , I let you commit the fix, and after I'll propose to publish a new
release.
Thks
> Bad request parameter encoding with tomcat 9
> --------------------------------------------
>
> Key: OFBIZ-13333
> URL: https://issues.apache.org/jira/browse/OFBIZ-13333
> Project: OFBiz
> Issue Type: Bug
> Components: ALL COMPONENTS
> Affects Versions: 24.09.04
> Reporter: Nicolas Malin
> Assignee: Deepak Dixit
> Priority: Major
> Attachments: Capture d’écran du 2025-12-30 11-29-25.png, Capture
> d’écran du 2025-12-30 11-29-41.png
>
>
> Hello,
> 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|https://cwiki.apache.org/confluence/display/TOMCAT/Character+Encoding#CharacterEncoding-Q3]
> sent with content-type : {{application/x-www-form-urlencoded}} [1]
> 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 ?
>
> [1]
> https://cwiki.apache.org/confluence/display/TOMCAT/Character+Encoding#CharacterEncoding-Q3
--
This message was sent by Atlassian Jira
(v8.20.10#820010)