to find out whether a character is of Single byte or Double bytes
hi,is there any built-in class to find whether a character is a single byte or double byte. is there any method to do so? If possible can someone provide a sample code snippet to do a check for single byte and double byte characters.thanx in advance.....
If you are asking what size the char primitive is, it's 16 bits.If you want to know the numerical value of a char, you can cast it to an int and compare it to 255 to see if it fits in 1 byte.