Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3527

Spring message tag should scape spanish accents properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.2.5.RELEASE
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Labels:
    • Environment:
      Windows, Linux, Tomcat 6/7. Issue reproduced testing with spring version 3.2.10.RELEASE and 4.0.6.RELEASE

      Description

      The spring message tag is not scaping html properly when spanish accent is present and htmlEscape attribute is set to true.

      Example:

      Text code (in property file):

      label.unsubscribe=Cancelar subscripci\u00f3n

      JSP javascript asignation:
      $labelUnsubscribe = '<spring:message code="label.unsubscribe" htmlEscape="true" />';

      Expected output:
      Cancelar subscripción
      Obtained output:
      Cancelar subscripci& oacute;n --> note the &Xcute not scaped.

      'EncodingFilter' is set to UTF-8.

      When the htmlEscape attribute is set to false or the property is not specified, the message is shown correctly, but we think that the output should be scaped correctly when the property is set to true, according with the documentation.

      EDIT: Created new issues on Spring Framework project, as this issues was created in the wrong place. Please close it. https://jira.spring.io/browse/SPR-12132

        Attachments

          Activity

            People

            Assignee:
            eruiz Enrique Ruiz (DiSiD)
            Reporter:
            jarey José Ángel Rey Liñares
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified