Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3976

i18n: single quotes get ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.3.8
    • 2.3.14
    • Plugin - Tiles
    • None

    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...

      Attachments

        Activity

          People

            Unassigned Unassigned
            flyingfischer Markus Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: