struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Götz (JIRA) <j...@apache.org>
Subject [jira] [Updated] (WW-3926) Inconsistent encoding behaviour in Struts 2.3.7 in JSPs, selects and submit buttons using i18n
Date Tue, 04 Dec 2012 09:52:58 GMT

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

Sebastian Götz updated WW-3926:
-------------------------------

    Attachment: ww3926.zip

After some digging I found out, that the actual component causing the problem is the tiles-plugin.
When building the application without tile sit works perfectly. Using tiles definitions for
the same JSPs fails for none-ASCII characters.

The attached project is actually an eclipse project. I am sorry it isn't a maven project.
                
> Inconsistent encoding behaviour in Struts 2.3.7 in JSPs, selects and submit buttons using
i18n
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-3926
>                 URL: https://issues.apache.org/jira/browse/WW-3926
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.3.7
>         Environment: Tomcat 7, Linux, Java 1.6
>            Reporter: Markus Fischer
>             Fix For: 2.3.8
>
>         Attachments: ww3926.zip
>
>
> I experience some problems with umlauts after upgrading from Struts 2.3.4.1 to 2.3.7:
> Text with umlauts like 'ä' from properties files get scrambled in the JSPs, selects
and submit buttons.
> file -i shows that properties file are encoded as iso-8859-1. which they should be, as
far as I know. Recoding the properties files to UTF-8 actually resolves the problem for the
JSPs. But within the selects and submit buttons the problem persists.
> In addition text from a databases is also scrambled, but only in selects and not when
using <s:property value=...
> This behaviour is new since version 2.3.7. I updated:
> - struts2-core
> - struts2-tiles-plugin
> - xwork-core 
> Adding acceptcharset="utf-8" to the forms does not help.
> I have in the JSPs <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> and <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">.
> Tomcat 7 is running with URIEncoding="UTF-8" 
> MySQL is used with pooled connections (c3p0) by connection with: jdbcUrl="jdbc:mysql://127.0.0.1/mydatabase?useUnicode=true&amp;characterEncoding=UTF-8...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message