You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Nick Belaevski (JIRA)" <de...@myfaces.apache.org> on 2008/05/27 19:38:01 UTC
[jira] Commented: (MYFACES-1396) International characters are not
properly encoded to Mnemonic/Numeric values (Was: Too much escaping)
[ https://issues.apache.org/jira/browse/MYFACES-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600213#action_12600213 ]
Nick Belaevski commented on MYFACES-1396:
-----------------------------------------
Escaping should be done conditionally, depending on the fact whether we're outputting script/style text or not.
E.g.:
\u00a0 should be represented as   for common text, but as \u00a0 for style/script tags body
> International characters are not properly encoded to Mnemonic/Numeric values (Was: Too much escaping)
> ------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-1396
> URL: https://issues.apache.org/jira/browse/MYFACES-1396
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Tomas Fischer
> Assignee: Martin Marinschek
> Attachments: test.jsf
>
>
> 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).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.