Script for sending incoming SMS to mail with full parsing
http://forum.mikrotik.com/t/script-for-sending-incoming-sms-to-mail-with-full-parsing/140125/1
Script for sending incoming SMS to mail with full parsing
http://forum.mikrotik.com/t/script-for-sending-incoming-sms-to-mail-with-full-parsing/140125/1
Hi and thank you for your work!
Emojis (and possibly other special characters) may be decoded incorrectly
For example, “
” (D83DDE06 in PDU, \D8\3D\DE\06 as input data for UCS2toUTF8) is decoded as %ED%A0%BD%ED%B8%86, but it is supposed to be %F0%9F%98%86
Is UTF-16, not UCS-2
UCS-2 is exactly 2 Bytes, not 4
The function is "UCS2toUTF8" not "UCS2toUTF16"
D8 3D DE 06 on UTF-16 is "SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES" ![]()
F0 9F 98 86 on UTF-8
So if that character is there, probably the whole PDU is directly in UTF-16