{"action":"created","issue":{"url":"https://api.github.com/repos/mervick/emojionearea/issues/232","repository_url":"https://api.github.com/repos/mervick/emojionearea","labels_url":"https://api.github.com/repos/mervick/emojionearea/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/mervick/emojionearea/issues/232/comments","events_url":"https://api.github.com/repos/mervick/emojionearea/issues/232/events","html_url":"https://github.com/mervick/emojionearea/issues/232","id":293838146,"number":232,"title":"emojioneArea init break some emojies when call it on input with data","user":{"login":"notgosu","id":2412202,"avatar_url":"https://avatars3.githubusercontent.com/u/2412202?v=4","gravatar_id":"","url":"https://api.github.com/users/notgosu","html_url":"https://github.com/notgosu","followers_url":"https://api.github.com/users/notgosu/followers","following_url":"https://api.github.com/users/notgosu/following{/other_user}","gists_url":"https://api.github.com/users/notgosu/gists{/gist_id}","starred_url":"https://api.github.com/users/notgosu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notgosu/subscriptions","organizations_url":"https://api.github.com/users/notgosu/orgs","repos_url":"https://api.github.com/users/notgosu/repos","events_url":"https://api.github.com/users/notgosu/events{/privacy}","received_events_url":"https://api.github.com/users/notgosu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-02T10:17:22Z","updated_at":"2018-02-04T16:13:22Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nThank you for your great work!\r\n\r\nHere is my problem - when i call `$('.emoji-subject').emojioneArea()` on input with some data(text+emojies), it's break some of emojies code, for example 'Man pilot', 'Cloud Snow', 'Cloud Lightning', and therefore it's showing like unicode symbols, without transformation to images.\r\n\r\nFor example:\r\n1) Init emojioneArea on my empty input\r\n2) Fill it with some content http://joxi.ru/eAO6140hxXXEX2\r\n3) Check it's content lenght via this code` (new TextEncoder('utf-8').encode($('.emoji-subject').val())).length`, it's return 60\r\n4) Save this to db(utf8mb4_unicode_ci)\r\n5) View record, check length before init emojioneArea, it's returns 60, everything is OK\r\n6) init emojioneArea and check length again - it's returns 51! So, it's break some parts of unicode. But it's still looks ok http://joxi.ru/12MxjQ7hMzzKLm\r\n7) Save data to db, view it again, init emojioneArea and there is no emojies - http://joxi.ru/n2Y05zRuozz5lm String length again returns 51\r\n\r\n\r\nSo, my question is - how can i fix it, because i need all of emojies to work fine.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mervick/emojionearea/issues/comments/362918603","html_url":"https://github.com/mervick/emojionearea/issues/232#issuecomment-362918603","issue_url":"https://api.github.com/repos/mervick/emojionearea/issues/232","id":362918603,"user":{"login":"notgosu","id":2412202,"avatar_url":"https://avatars3.githubusercontent.com/u/2412202?v=4","gravatar_id":"","url":"https://api.github.com/users/notgosu","html_url":"https://github.com/notgosu","followers_url":"https://api.github.com/users/notgosu/followers","following_url":"https://api.github.com/users/notgosu/following{/other_user}","gists_url":"https://api.github.com/users/notgosu/gists{/gist_id}","starred_url":"https://api.github.com/users/notgosu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notgosu/subscriptions","organizations_url":"https://api.github.com/users/notgosu/orgs","repos_url":"https://api.github.com/users/notgosu/repos","events_url":"https://api.github.com/users/notgosu/events{/privacy}","received_events_url":"https://api.github.com/users/notgosu/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T16:13:22Z","updated_at":"2018-02-04T16:13:22Z","author_association":"NONE","body":"@mervick okay, can you show me the example of \r\n\r\n> get md5 of only utf8 symbols of emoji\r\n\r\n> by the way in your last example emoji shows fine\r\nit's shows fine, but save to DB broke emoji and it's looks like http://take.ms/gv0Cx"}}
{"actor":{"display_login":"notgosu"}}