Ported PR
https://github.com/apache/struts/pull/1511

niedz., 4 sty 2026 o 17:06 Łukasz Lenart <[email protected]> napisał(a):
>
> PR is ready for 7.x branch, I will port a simpler version for 6.x branch as 
> well
> https://github.com/apache/struts/pull/1510
>
> sob., 3 sty 2026 o 10:48 Ing. Andrea Vettori <[email protected]> 
> napisał(a):
> >
> > Thanks for the clarification.
> > I created the JIRA issue https://issues.apache.org/jira/browse/WW-5602.
> >
> > Thanks
> >
> > > On 3 Jan 2026, at 08:01, Lukasz Lenart <[email protected]> wrote:
> > >
> > > pt., 2 sty 2026 o 16:15 Ing. Andrea Vettori <[email protected]> 
> > > napisał(a):
> > >> Thanks I will create the JIRA ticket.
> > >
> > > Great, thanks a lot!
> > >
> > >> However I don’t understand your answer about my first question.
> > >> What is the cause I always find the charset even if it’s not specified 
> > >> as a parameter ? For example if content type is application/pdf served 
> > >> from StreamResult I find it adds the charset even with no charset 
> > >> parameter on the struts.xml.
> > >
> > > See this code fragment in Dispatcher
> > > https://github.com/apache/struts/blob/main/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java#L939-L953
> > >
> > > and default encoding is always set to UTF-8
> > > https://github.com/apache/struts/blob/main/core/src/main/resources/org/apache/struts2/default.properties#L27
> > >
> > >
> > > Cheers
> > > Łukasz
> > >

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to