sanoopsivan / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

How to send message in arabic #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Am not able to send arabic SMS message, can any one guide me to achieve
sending arabic sms message.

Original issue reported on code.google.com by salim.k...@gmail.com on 23 Dec 2008 at 3:48

GoogleCodeExporter commented 8 years ago
Hi,
Writing arabic should use unicode characters, it use UCS2 equals to 16bit.
I've been add examples for sending message on unicode characters. Please check 
the 
examples at 
http://code.google.com/p/jsmpp/source/browse/trunk/src/java/examples/org/jsmpp/e
xampl
es/SendUnicode.java

Please tell me the if you have succeed doing this.

Original comment by uuda...@gmail.com on 24 Dec 2008 at 4:51

GoogleCodeExporter commented 8 years ago
In the example given by you the constructor used for Datacoding as below is not
compiling.

DataCoding dataCoding = new GeneralDataCoding(Alphabet.ALPHA_UCS2,
MessageClass.CLASS1, false);

Original comment by salim.k...@gmail.com on 26 Dec 2008 at 1:17

GoogleCodeExporter commented 8 years ago
Sorry I'm using last version from repositories.
For version 2.0, please use the General Data Coding just like on the 
http://code.google.com/p/jsmpp/source/browse/tags/2.0/src/java/examples/org/jsmp
p/exa
mples/SimpleSubmitExample.java
Change the Alphabet using ALPHA_UCS2

from
new GeneralDataCoding(false, true, MessageClass.CLASS1, Alphabet.ALPHA_DEFAULT)
to
new GeneralDataCoding(false, true, MessageClass.CLASS1, Alphabet.ALPHA_UCS2)

Original comment by uuda...@gmail.com on 26 Dec 2008 at 1:56

GoogleCodeExporter commented 8 years ago
thnks, I am able tosend sms in arabic lang

Original comment by salim.k...@gmail.com on 27 Dec 2008 at 11:22