Is it possible to force JSF to escape special-characters in the unicode-way ä
rather than the named-entity-way ä
?
Background: Some old mobile devices (e.g. a HTC-Desire with Android 2.3.4) refuse to display a page containing named-entities:
This page contains the following errors ... Entity 'auml' not defined.
The page has a HTML5-Doctype and according to the specification auml
is a valid predefined character-reference.
So I think this is a browser bug but that does not help me here.
What I tried is to replace special-characters with their unicode-representation. But if I place an ä
or even an ä
in the view JSF will render me an ä
.
If I place the entity-mapping in the doctype (I know that this should not be done in a HTML5-doctype) the behaviour gets really strange:
<!DOCTYPE html [
<!ENTITY auml "ä">
<!ENTITY mdash "—">
...
]>
This will result in a correct HTML5 doctype without the mapping. But a —
will be replaced by —
while an ä
won't be replaced.
Has anybody an explanation for that or is there the possibility to configure JSF to allways render unicode-escaped entitites?