Link to home
Start Free TrialLog in
Avatar of res_this
res_this

asked on

java function to test string for double byte characters

Hi,
   I need to know if there is a way in java to check if the input string contains double byte characters.
Thanks
Avatar of marklorenz
marklorenz
Flag of United States of America image

Try this:

"java to convert the string text(with double byte code character) I receive from JTextField and
convert it to ASCII code"

http://java.ittoolbox.com/groups/technical-functional/java-l/how-to-add-double-byte-characterexample-chinese-characterto-mysql-database-using-java-484864


Avatar of CEHJ
*All* Java characters are double byte, in the sense that a String is composed of char[] and char is two bytes
Avatar of res_this
res_this

ASKER

I dont need to convert, just need to check if the double byte characters exist in the string
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-)