I just couldn't resist :^P ... Tomorrow I'll try it, but for now this looks like a "simpler" solution to the character encoding problem:

http://www.servletsuite.com/servlets/encflt.htm



----- Original Message ----- From: "Kishore Senji" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, January 31, 2005 7:47 PM
Subject: Re: [UNICODE characters in Mask validation rule]



Good evening. I'm a little stuck trying to create a global constant in validation.xml that allows the mask rule to validate "special" spanish characters like Ñ [ UNICODE = \u00d1 ] for names, surnames, city names and so... Can someone give a hint ;^) ? Mi RegExp is like this: ^[A-Z.Ñ\s]*$

Something like this, I suppose

<global>
   <constant>
     <constant-name>name</constant-name>
     <constant-value> ^[A-Z.\u00d1\s]*$</constant-value>
 </global>


But make sure you use the right character encoding for the request. http://marc.theaimsgroup.com/?l=struts-user&m=110484806414499&w=2 should give your more information on character encoding

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to