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
Unicode sms broken #71
Comments
what gateway do you use ? |
Hi, we are using the SMSTools for SMS gateway |
locate fn.php in plugin/gateway/smstools/, edit it and look for function smstools_hook_sendsms(). locate this code snippet inside smstools_hook_sendsms(): if ($unicode) { if you check the unicode option, the message will be converted by using mb_convert_encoding with supplied encoding UCS-2BE. This may not be what you need. Try removing this code (comment them), or look for suitable encoding, other than UCS-2BE. |
just comment the mb_convert_encoding line, dont comment or remove all lines as you need to state "Alphabet: UCS" for smstools. |
Hi Anton We got the problem |
Please focus on the issue, do not repeat all your problem on every posts. Remove the comment and then replace UCS-2BE with UCS-2 and then UTF-16. See what happen. |
Btw, if possible, please share your smsd.conf (smstools config file), post it in pastebin.com or here |
After remove the comment for the line and try UCS-2 and UTF-16 both can working fine (check the Unicode option), but we were still lost the last part if the SMS over the 70 char |
Ok, please make sure, if you're using UCS-2BE, UCS-2 and UTF-16, all working fine for first part, but not second part or more. Also please paste a sample text, not sure what to look for in the Internet. |
/etc/smsd.confdevices = GSM1 #blacklist = /etc/smsd.black [GSM1] |
UCS-2BE, UCS-2 and UTF-16 all can working fine with Chinese, you may find the test message as below 1测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测2测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 |
Thanks. I'm not sure if this is playSMS or smstools issue, I'm using Kannel mostly, and it seems to be ok, I'll test with your text. Can you comment decode_unicode_text and eventhandler, restart smstools and test again without those options. |
Hi Anton I commented the two options in “/etc/smsd.conf” and restart the sms3 Thanks |
Hi Anton Could you please let us know if there is any news for issue 71? and how Thanks -----邮件原件----- Thanks.
|
Hi, I did experience the same as yours, I was using Kannel and playSMS cut it off before reaching gateway (Kannel or smstools), so this is a confirmed bug. anton |
if the message is too long, only the first part is send out for Unicode. In standard no problem when splitting the text. Before it was working fine for Unicode.
Tested in 0.9.8
The text was updated successfully, but these errors were encountered: