Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2996

i18n texts in UTF-8 files aren't decoded properly

    Details

      Description

      Steps to reproduce:

      1. Create a JSF portlet.
      2. Remove content in i18n.properties file.
      3. Check i18n.properties file has ISO-8859 encoding (ie., in Linux use 'file' command).
      4. Change i18n.properties encoding from ISO-8859 to UTF-8 (by using iconv or in file properties in Eclipse).
      5. Add some UTF characters in that property (for example; "hola qué tal?").
      6. Render that property in view.xhtml file (<h:outputText value="# {i18n['utf-character-word']}

        " />

      7. Deploy portlet.

      Expected behavior: Text should show properly.
      Actual behavior: Text is showing wrong.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                util-1.1.0
                util-2.1.0
                util-3.1.0