J2me character range
Hi,
Does anybody knows the range of character that j2me has in its library. Does it have the standard 256 char ASCII set of keys.
What I actually mean is, if I say getchar(256), will it return the apt ASCII char set?
I want to be able to get each key in the 256 ASCII character key set and send them as SMS from my midlet to a server. The aim is to compress the message so that I can send within 160 character limit of SMS message.
# 1
First of all, java is unicode, so yes, you will have more than the default ASCII set available.
But:
- A lot of phones cannot display unicode characters
- SMS'es are 7 bit encoded. There is special unicode encoding, but basicly you'll only be able te send 70 characters with it.
# 4
Thnx for your help.
So if I ask midp jre (j2me) to fetch the char value of an integer, its going to fetch the char based on the SMS 7-bit default alphabet or based on java standard ASCII?
e.g if I say
char c = (char) num, it is going to fetch the char based on ascii or based on SMS 7-bit alphabet?
# 5
If you did:
char c = (char) 60000;
c would have the value 60000 but it won't be displayable, it would probably show as '?' or the square character you see on webpages when you don't have the character set installed. < (You probably know this, am just making sure).
I'd say that the character set supported in sms is likely to be the same for j2me on the device.
DAN