Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1396

International characters are not properly encoded to Mnemonic/Numeric values (Was: Too much escaping)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.5-SNAPSHOT
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None

      Description

      HTMLOutputText (which delegates to HTMLEncoder) escapes not only XML-invalid charactres (like <, >, &), but also german umlauts. This is OK if generating (X)HTML, but not OK if generating XML. However, according to the official documentation to the outputText Tag the german umlauts should not be quoted: If the "escape" attribute is not present, or it is present and its value is "true" all angle brackets should be converted to the ampersand xx semicolon syntax when rendering the value of the "value" attribute as the value of the component.

      There is an automatic XML detection, but this is broken, as only predefined MIME-types are recognized (application/xhtml+xml, application/xml, text/xml).

      This bug prevents using JSF for generating other content (e.g. SVG, MIME-type image/svg+xml).

        Attachments

        1. test.jsf
          0.3 kB
          Paul Pogonyshev

          Activity

            People

            • Assignee:
              mmarinschek Martin Marinschek
              Reporter:
              fischert Tomas Fischer
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: