I am developing an iPhone app that would send emoticons from iPhone to server-side.
But, what the server-side received everytime is always null(or blank?).
I referred here at SO but with no help.
I also referred HTML_Emoji but it seems to be not an simple encoding or escape character issue.
Is it an issue about carrier’s emoticons codes?
So, how could I receive the right emoticons in CakePHP?
Or its not an issue just in CakePHP framework but in PHP or Java or any language else?
What I am developing is the webservice(server-side), and the development of iPhone app is other partner. What sending from iPhone is no problem by theirs saying and with log output(such as \Ud83c\Udfe7) in Xcode when debugging, but I just receive them at server-side with blank value.
By the way, one message sending from our iPhone app with just plain text, it could be received correctly(received by $_POST in CakePHP);
with emoticons in the message, what php received is only plain text without emoticons in it.
Thanks.
I think what you are trying to do is send the ‘image’ file and have php capture that data. In order to do that you need to ‘capture’ the image data with something like:
This is PHP specific if you plan on using PHP regardless of the framework. You can read more about how to capture this data here:
http://php.net/manual/en/wrappers.php.php
UPDATE
You need to store it as a blob so it will store the image data correctly.