[
https://issues.apache.org/jira/browse/WW-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Markus Fischer updated WW-3976:
-------------------------------
Description:
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...
was:
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 qould 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...
> 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
>
> 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