06-20-2012 04:29 AM
Hi guys,
I was wondering is there a way to detect the character set? For example detect whether the characters are Chinese or English?
Thanks.
06-20-2012 04:35 AM
I think the answer here is "it depends".
In what circumstances are you wanting to do this?
06-21-2012 06:09 AM
06-21-2012 07:27 AM
I am not aware of a way to check this given a String.
However you might be able to do this by checking each character.
Look at the Character and Characters class. do the methods in there help?
Remember that the characters entered are Unicode, so you might be able to check the values directly too.