-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is coding and charset MSG properties used? #1
Comments
Hey @tamerMarzouk thank's to use my nodejs module, I'll add this feature. |
@tamerMarzouk, I have add two functions to hep you, app.sendUCS2SMS({
sender: 'TEST',
receiver: '06462845',
msgdata: 'Bonjour, Hi, 你好, صباح الخير', // UCS2 text
});
app.flashUCS2SMS({
sender: 'TEST',
receiver: '06462845',
msgdata: 'Bonjour, Hi, 你好, صباح الخير', // UCS2 text
}); I hope help you again. |
I think the example is not correct.
|
Can you test, UCS2 is UTF16BE, the buffer has correctly converted now. |
My Setup is not connected to a live SMSC right now. I will try to send as soon as I could. |
@tamerMarzouk, do you have test the new version of kannel(nom module)? |
I've tested the new version of kannel. |
I've just used sendSMS function and added two lines to the following code
then When I send Arabic text I provide code=2 and charset='UTF-16BE' and the msgdata is a string representation in hex for example '06310633062706440629' which is the Arabic word 'رسالة' The above works good for me and is the same format received by an SMS app as if it was sent from kannel push SMS URL. |
Hi @tamerMarzouk, Please update kannel.js to the last version, and use sendUCS2SMS or flashUCS2SMS. |
When using the smsbox.send, I don't see that the charset nor coding properties are used.
How do I send Arabic text. In kannel url I used to set coding=2 url parameter, and charset=UTF-16BE, and text = hex
I changed the sendSMS function like this to add charset and coding
the text I sent as a buffer with hex encoding.
The text was updated successfully, but these errors were encountered: