Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way in Java to filter for characters within a unicode version (3.2)?

Tags:

java

unicode

I have a registration process in Java. I want to make sure the names used are all within unicode 3.2. This unicode requirement is for another part of my system which is not in java.

Does Java have a easy way to validate a string for unicode versions? I can't seem to find anything from some cursory checks.

Thanks

like image 979
chrisyunker Avatar asked Jan 09 '13 17:01

chrisyunker


1 Answers

I would read this UCD file and build a BitSet from the first column. This would be fast way to test each code point in a String.

like image 175
Peter Lawrey Avatar answered Nov 19 '22 08:11

Peter Lawrey