You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Daniel Lazaro (JIRA)" <ji...@apache.org> on 2008/03/04 19:41:07 UTC

[jira] Created: (WW-2532) I18n using global-messages_xx.properties files in UTF-8 format fails to serve them correctly.

I18n using global-messages_xx.properties files in UTF-8 format fails to serve them correctly.
---------------------------------------------------------------------------------------------

                 Key: WW-2532
                 URL: https://issues.apache.org/struts/browse/WW-2532
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions, Core Interceptors
    Affects Versions: 2.0.11.1, 2.0.11
         Environment: Tomcat 5.5, Jdk 6.0.3
            Reporter: Daniel Lazaro
            Priority: Critical


I am using global-messages_xx.properties files in UTF-8 format for i18n in our website using struts 2. When i use characters that consume more than one byte in UTF-8, struts replaces them wrong.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2532) I18n using global-messages_xx.properties files in UTF-8 format fails to serve them correctly.

Posted by "Daniel Lazaro (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Lazaro updated WW-2532:
------------------------------

    Description: I am using global-messages_xx.properties files in UTF-8 format for i18n in our website using struts 2. When i use characters that consume more than one byte in UTF-8, struts replaces them wrong. I have set the struts.i18n.encoding=UTF-8 property in the struts.properties file.  (was: I am using global-messages_xx.properties files in UTF-8 format for i18n in our website using struts 2. When i use characters that consume more than one byte in UTF-8, struts replaces them wrong.)

> I18n using global-messages_xx.properties files in UTF-8 format fails to serve them correctly.
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2532
>                 URL: https://issues.apache.org/struts/browse/WW-2532
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions, Core Interceptors
>    Affects Versions: 2.0.11, 2.0.11.1
>         Environment: Tomcat 5.5, Jdk 6.0.3
>            Reporter: Daniel Lazaro
>            Priority: Critical
>
> I am using global-messages_xx.properties files in UTF-8 format for i18n in our website using struts 2. When i use characters that consume more than one byte in UTF-8, struts replaces them wrong. I have set the struts.i18n.encoding=UTF-8 property in the struts.properties file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2532) I18n using global-messages_xx.properties files in UTF-8 format fails to serve them correctly.

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-2532.
---------------------------

    Resolution: Not A Problem
      Assignee: Don Brown

Unfortunately, this is a core Java problem.  Java loads resource files in whatever encoding is native to that OS.  Therefore, the only way to ensure the unicode characters are there will be to encode them yourself. Struts lets Java's ResourceBundle class handle loading and retrieving message resources.  See http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/ for more information.

> I18n using global-messages_xx.properties files in UTF-8 format fails to serve them correctly.
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2532
>                 URL: https://issues.apache.org/struts/browse/WW-2532
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions, Core Interceptors
>    Affects Versions: 2.0.11, 2.0.11.1
>         Environment: Tomcat 5.5, Jdk 6.0.3
>            Reporter: Daniel Lazaro
>            Assignee: Don Brown
>            Priority: Critical
>
> I am using global-messages_xx.properties files in UTF-8 format for i18n in our website using struts 2. When i use characters that consume more than one byte in UTF-8, struts replaces them wrong. I have set the struts.i18n.encoding=UTF-8 property in the struts.properties file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.