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.

[456 byte] By [lekkie.aydota] at [2007-11-26 18:17:43]
# 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.

deepspacea at 2007-7-9 5:51:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Does that mean I cant send the special xters as SMS msg e.g ASCII xter btw 0 and 31?
lekkie.aydota at 2007-7-9 5:51:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Here is the SMS alphabet: http://www.dreamfabric.com/sms/default_alphabet.html
deepspacea at 2007-7-9 5:51:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 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?

lekkie.aydota at 2007-7-9 5:51:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 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

Danford666a at 2007-7-9 5:51:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...