Thanks Nikos. As you proposed, the best was to save space is to use windows-1252 charset. Where to use it? Should Kannel be configured to do so? Or the application which receives sms from Kannel needs to use windows-1252 to decode the message.
And yes, the Kannel is sending 0x80 for euro symbol. >From log: DEBUG: Query: ...&text=%80... Regards. 2009/8/13 Nikos Balkanas <nbalka...@gmail.com> > Hi, > > Are you sending the sms from a windows machine? Then you are sending > windows-1252 charset, which is a superset of iso-8859-1. It defines > additionally the range 0x80 - 0x9F, and guess what, the Euro symbol is 0x80, > which is not defined in iso-8859-1. The best way to get Euro symbols is with > utf-8 (your sms space is reduced, though). > > Poor kannel is trying to do its best with an undefined symbol. If you want > to save sms space try working with windows-1252. > > By the way 0xFFFF80 is an integer. The byte is the LSB, 0x80. > > BR, > Nikos > > ----- Original Message ----- > *From:* Latitude Berlin <latitude...@googlemail.com> > *To:* users <users@kannel.org> > *Sent:* Thursday, August 13, 2009 5:49 PM > *Subject:* invalid charset returned by sms-service > > Hi, > > > group = sms-service > get-url = http:// ... &text=%a&charset=%C > > I sent an sms with euro symbol and Kannel forwarded it to the Servlet. The > charset sent by Kannel was ISO-8859-1. Euro symbol is not part of > ISO-8859-1. How kannel is setting this up? > > The byte value of euro symbol which I get in Servlet is: ffffff80 > > Cheers. > >