You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Erik Berg (JIRA)" <ji...@apache.org> on 2014/11/16 01:33:33 UTC

[jira] [Updated] (WW-4420) Character encoding changes between 2.3.16 and 2.3.19

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