{"action":"created","issue":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/759","labels_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/759/labels{/name}","comments_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/759/comments","events_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/759/events","html_url":"https://github.com/WHAnonymous/Chat-API/issues/759","id":81008510,"number":759,"title":"How to add emojis?","user":{"login":"chtha","id":11158455,"avatar_url":"https://avatars.githubusercontent.com/u/11158455?v=3","gravatar_id":"","url":"https://api.github.com/users/chtha","html_url":"https://github.com/chtha","followers_url":"https://api.github.com/users/chtha/followers","following_url":"https://api.github.com/users/chtha/following{/other_user}","gists_url":"https://api.github.com/users/chtha/gists{/gist_id}","starred_url":"https://api.github.com/users/chtha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtha/subscriptions","organizations_url":"https://api.github.com/users/chtha/orgs","repos_url":"https://api.github.com/users/chtha/repos","events_url":"https://api.github.com/users/chtha/events{/privacy}","received_events_url":"https://api.github.com/users/chtha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-26T15:17:17Z","updated_at":"2015-06-10T00:00:47Z","closed_at":"2015-05-26T15:22:43Z","body":"I know that this question was asked several times, but I don't really get it working.\r\n\r\nI wrote a PHP function to convert emoji codes to UTF-8 according to this list: http://apps.timwhitlock.info/emoji/tables/unicode\r\n\r\nThe input for a message now is (i.e.) \"This is a \\xF0\\x9F\\x98\\x84 test\".\r\nBut the message text will not be converted (by WhatsApp?), but will appear on the received message as this: \"This is a \\xF0\\x9F\\x98\\x84 test\". The assumed UTF-8 string is not converted to an emoji. How can I fix this? Am I making something wrong? Can you give me some PHP function to handle this?\r\n\r\nThank you in advance\r\n\r\nChris"},"comment":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/comments/110538399","html_url":"https://github.com/WHAnonymous/Chat-API/issues/759#issuecomment-110538399","issue_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/759","id":110538399,"user":{"login":"fermino","id":8203176,"avatar_url":"https://avatars.githubusercontent.com/u/8203176?v=3","gravatar_id":"","url":"https://api.github.com/users/fermino","html_url":"https://github.com/fermino","followers_url":"https://api.github.com/users/fermino/followers","following_url":"https://api.github.com/users/fermino/following{/other_user}","gists_url":"https://api.github.com/users/fermino/gists{/gist_id}","starred_url":"https://api.github.com/users/fermino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fermino/subscriptions","organizations_url":"https://api.github.com/users/fermino/orgs","repos_url":"https://api.github.com/users/fermino/repos","events_url":"https://api.github.com/users/fermino/events{/privacy}","received_events_url":"https://api.github.com/users/fermino/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T00:00:47Z","updated_at":"2015-06-10T00:00:47Z","body":"@chtha I think it doesn't work beacuse your csv doesn't have the utf-8 characters, only the hexa codes. So your PHP code doesn't convert that escaped strings, only sends '\\xXX\\xXX\\xXX\\xXX', as literal. \r\n\r\nRegards!\r\n-fermino-"}}