Reading characters other than english in java
807607Jan 12 2007 — edited Jan 13 2007hi,
In my application, I want to write a java program to read characters in different languages..., i.e. a user can type anything in various langauges. The characters can be single byte or double byte for example a string like "123adads����/�h�Zkjkk444" which i want to read in my java program. I tried reading a simple chinese string by writing a sample program, but was unable to do so...., actually chinese characters are double byte characters... according to my programming logic, i need to test for the character located at the 72th position in this string, if the charcter is double byte character then i want to give a proper message. Is there a way to do so..... moreover the charcters can be in any language othr than english, like german, japanese etc..., for each i want to check for the double byte charcter at the 72th location. how to read such types of strings?? can someone plz help..., plz do provide a sample code also if possible....
thanx in advance....