struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <>
Subject [jira] [Comment Edited] (WW-3976) i18n: single quotes get ignored
Date Fri, 22 Mar 2013 08:57:15 GMT


Lukasz Lenart edited comment on WW-3976 at 3/22/13 8:56 AM:

Did you check that

As Struts bases on {{java.util.ResourceBundle}} there is no way to solve that in Struts ;-)
      was (Author: lukaszlenart):
    Did you check that
> i18n: single quotes get ignored
> -------------------------------
>                 Key: WW-3976
>                 URL:
>             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://

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:

View raw message