Hi all,
I'm currently developping an i18n application. I experienced strange
behaviours with Latin 1 characters (especially French accented
characters) with resources and validation.
I defined the following resource in the resources.properties file:
error.invalid.mask: le champ {0} contient des caractères non valides.
in the validation.xml file, I defined the following field:
<form name="subscribeForm">
...
<field property="username" depends="required,mask">
<msg name="mask" key="error.invalid.mask"/>
<arg0 key="subscribe.username.label"/>
<var>
<var-name>mask</var-name>
<var-value>${usernameMask}</var-value>
</var>
</field>
...
</form>
Everything is working fine, beside the fact the & in the resource
error.invalid.mask is "ampersanded" into & as return from the
validation process. This is annoying as the result in the web page is
le champ {...} contient des caractères non valides.
instead of
le champ {...} contient des caract�res non valides.
where the è is replaced by the according French character. Note that,
<bean:message key="error.invalid.mask"/>
is not encoding the & into & and displays the message correctly.
I'guess it's an "MS-like undocumented feature" ;-), therefore I'm not
really sure if this is a bug or a mistake of mine.
Did anyone experience similar behaviour? Bug? Mistake?
Cheers,
Foux
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]