jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjay Chopra <sanj...@sapient.com>
Subject detecting UTF-8 characters in Strings
Date Wed, 16 Jan 2002 13:36:25 GMT
I am trying to write a validation function that would allow me to detect any
UTF-8 characters

Just to give the context -- its a user driven program and we would like to
detect when the user has entered any UTF-8 character Vs. only ASCII

An expression something like this : "[a-zA-Z][\\w\\-]{2,31}"  would allow to
enter the ascii characters

Is there a way by way of expressions that I can detect if the user is
entering UTF-8 characters ... \u or \x something of that sorts...

any help would be greatly appreciated..

many thanks

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message