struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Berg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4420) Character encoding changes between 2.3.16 and 2.3.19
Date Sun, 16 Nov 2014 00:33:33 GMT

     [ https://issues.apache.org/jira/browse/WW-4420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Erik Berg updated WW-4420:
--------------------------
    Attachment: testcase.tar

tar xvf testcase.tar
cd testcase
mvn tomcat7:run
http://localhost:8080/testcase/hello

Loading the webpage will show several "?" characters. Inspecting the page will reveal the
response header content type is ISO-8859-1.

Stop the server, edit pom.xml to use Struts version 2.3.16, and restart the app server. The
"?" characters will be replaced with the correct UTF-8 characters. Inspecting the page will
show the response header content type is UTF-8.

> Character encoding changes between 2.3.16 and 2.3.19
> ----------------------------------------------------
>
>                 Key: WW-4420
>                 URL: https://issues.apache.org/jira/browse/WW-4420
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.19
>            Reporter: Erik Berg
>         Attachments: testcase.tar
>
>
> By only changing the Struts version, the character encoding changes from UTF-8 in 2.3.16.3
to ISO-8859-1 in 2.3.19.
> Attaching a simple test case built with struts 2 convention archetype to illustrate the
problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message