struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Fischer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3976) i18n: single quotes get ignored
Date Fri, 22 Mar 2013 09:01:20 GMT

    [ https://issues.apache.org/jira/browse/WW-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610048#comment-13610048
] 

Markus Fischer commented on WW-3976:
------------------------------------

You are right!

This is the reason and the solution!

Thanks!
                
> i18n: single quotes get ignored
> -------------------------------
>
>                 Key: WW-3976
>                 URL: https://issues.apache.org/jira/browse/WW-3976
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.3.8
>            Reporter: Markus Fischer
>            Priority: Minor
>             Fix For: 2.3.13
>
>
> When using i18n there is a problem with the single quote character '
> It actually gets ignored, when using a key in a property file (ISO-8895-1):
> submitAlert=S'abonner
> will display as Sabonner
> It does not help to encode ' as unicode escape sequence \u0027. It still will get ignored.
To work around I have to use \u2019 which is not the same charcter: ’
> I hope this can be resolved.
> Intersting: when using the Eclipse plugin RessourceBundleEditor, single quotes will not
even get escaped to unicode. So I assume the single quote is a valid ISO-8859-1 caracter,
which actually would not need to be escaped at all..
> Markus
> PS: I use
> acceptcharset="utf-8" in forms
> 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&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