Thu Jan 01, 2015 11:51
|
mands72: Operating system name and version: Raspberry Pi with Raspbian / PHP 5.4.35
Version of smsd: v3.1.15
Smsd installed from: sources
Name and model of a modem / phone: Huawei E160
Interface: USB
Good morning guys,
I'm having issues to display correctly emoji icons in the messages - in my tests the receiving device is an iPhone...
What I'm trying to do: A PHP script is using the Instagram API to get all new posts. The returning data from them is JSON encoded.
Example:
Happy new year\ud83c\udf89\ud83c\udf89\ud83d\udc9d\ud83d\udc9d\ud83d\udc9d
-> Means "Happy new year" and 5 emoji icons.
My php script is an all in one script fetching the JSON, process it and creating the SMS file in /var/spool/sms/outgoing/send_XXX by itself. I already tried to decode/encode the string in different ways before putting it into the SMS file, but with no success.
On some of the characters I'm also getting back a "Cannot convert 37. character ? 0x9D to GSM, you might need to update the translation tables."
Is there anyone of you who did it before or someone who has an idea what I could try? I'm still a bit confuced about the different char set's and how to handle them correctly.
By the way, then I'm sending a message from an iPhone to the modem with the same string as in the example with the "Happy new year" above (I did it backwards than I need it), the file in the incoming folder looks like that:
From: xxx
From_TOA: 91 international, ISDN/telephone
From_SMSC: zzz
Sent: 15-01-01 12:44:38
Received: 15-01-01 12:44:41
Subject: huawei
Modem: huawei
IMSI: yyy
Report: no
Alphabet: UCS2
Length: 24
^@H^@a^@p^@p^@y^@ ^@n^@e^@w^@ ^@y^@e^@a^@r�<߉؉<߉؉=ܝ =ܝ =ܝ
I will be happy about anything that comes to your mind about my problem or any idea how I can try to convert the characters correctly :oops: :)
Thanks and a happy new year! :D
|