emoticons

Blackberry: Emoticons in Chat Application

对着背影说爱祢 提交于 2019-11-29 02:36:28
I want to make a chat application where the emoticons are necessary. I was trying to write my own TextBox to handle some unicode caracters and replace them with smiles and emoticons, but that was a hard work to do and I encountered many problems. Then I tried to make a custom font that will have emoticons in it but I found that a font is made in black and white and cannot be colored. I tried then to use different EditFields so when I find a Bitmap I draw it and start a different EditField but that didnt work for several lines and selection problems occured. The best way was to write my own

Regex matching emoticons

落花浮王杯 提交于 2019-11-28 10:17:51
We are working on a project where we want users to be able to use both emoji syntax (like :smile: , :heart: , :confused: , :stuck_out_tongue: ) as well as normal emoticons (like :) , <3 , :/ , :p ) I'm having trouble with the emoticon syntax because sometimes those character sequences will occur in: normal strings or URL's - http :/ /example.com within the emoji syntax - :p encil: How can I find these emoticon character sequences but not when other characters are near them? The entire regex I'm using for all the emoticons is huge, so here's a trimed down version: (\:\)|\:\(|<3|\:\/|\:-\/|\:\||

Plot emojis/emoticons in R with ggplot

旧街凉风 提交于 2019-11-28 05:39:31
问题 I'm trying to make a plot with emojis in ggplot2. What I want is to show emojis instead of labels or show like geom. This question in Stack is very similar to my problem, but it does not solve it either, the answer is quite manual and I need to make automatic (my real data frame has 3000 rows). Just to clarify in this plot below I want to show emojis instead of text labels or within the bars. But seems impossible. After trying differents solutions I'm stacked so any help would be appreciated.

Detect emoticons in string

时光毁灭记忆、已成空白 提交于 2019-11-28 01:49:26
问题 I found that you need PHP 7 and MySQL 5.5 to use emoticons in a string that you want to upload to the database. I don't have these specification on my server so I want to give an error message in laravel or php. Is there a way to detect emoticons in php? If so then I can create a custom validation or something like that? I've tried alpha_dash validation in Laravel but then it isn't possible to do one old-school like this one :-) 回答1: To follow on from Johannes answer I found a solution on a

A better way to replace emoticons in PHP?

早过忘川 提交于 2019-11-27 22:29:57
Right now I am using this function for emoticons: function emoticons($text) { $icons = array( ':)' => '<img src="/images/blank.gif" alt="smile" class="icon_smile" />', ':-)' => '<img src="/images/blank.gif" alt="smile" class="icon_smile" />', ':D' => '<img src="/images/blank.gif" alt="smile" class="icon_laugh" />', ':d' => '<img src="/images/blank.gif" alt="laugh" class="icon_laugh" />', ';)' => '<img src="/images/blank.gif" alt="wink" class="icon_wink" />', ':P' => '<img src="/images/blank.gif" alt="tounge" class="icon_tounge" />', ':-P' => '<img src="/images/blank.gif" alt="tounge" class=

How to convert emoticons to its UTF-32/escaped unicode?

ε祈祈猫儿з 提交于 2019-11-27 19:01:13
问题 I am working on a chatting application in WPF and I want to use emoticons in it. I am working on WPF app. I want to read emoticons which are coming from Android/iOS devices and show respective images. On WPF, I am getting a black Emoticon looking like . I somehow got a library of emoji icons which are saved with respective hex/escaped unicode values. So, I want to convert these symbols of emoticons into UTF-32/escaped unicode so that I can directly replace related emoji icons with them. I had

Regex matching emoticons

梦想与她 提交于 2019-11-27 03:36:58
问题 We are working on a project where we want users to be able to use both emoji syntax (like :smile: , :heart: , :confused: , :stuck_out_tongue: ) as well as normal emoticons (like :) , <3 , :/ , :p ) I'm having trouble with the emoticon syntax because sometimes those character sequences will occur in: normal strings or URL's - http :/ /example.com within the emoji syntax - :p encil: How can I find these emoticon character sequences but not when other characters are near them? The entire regex I

A better way to replace emoticons in PHP?

十年热恋 提交于 2019-11-26 23:12:15
问题 Right now I am using this function for emoticons: function emoticons($text) { $icons = array( ':)' => '<img src="/images/blank.gif" alt="smile" class="icon_smile" />', ':-)' => '<img src="/images/blank.gif" alt="smile" class="icon_smile" />', ':D' => '<img src="/images/blank.gif" alt="smile" class="icon_laugh" />', ':d' => '<img src="/images/blank.gif" alt="laugh" class="icon_laugh" />', ';)' => '<img src="/images/blank.gif" alt="wink" class="icon_wink" />', ':P' => '<img src="/images/blank

Replace a list of emoticons with their images

馋奶兔 提交于 2019-11-26 19:54:21
I have an array with: emoticons = { ':-)' : 'smile1.gif', ':)' : 'smile2.gif', ':D' : 'smile3.gif' } then i have a variabile with the text. var text = 'this is a simple test :)'; and a variable with the url of the website var url = "http://www.domain.com/"; How to write a function that replace the symbols with their images? The <img> tag result should be: <img src="http://www.domain.com/simple2.gif" /> (I have to concatenate the url varible to the name of the image). THank you very much! CMS Another approach: function replaceEmoticons(text) { var emoticons = { ':-)' : 'smile1.gif', ':)' :

Incorrect string value: '\\xF0\\x9F\\x8E\\xB6\\xF0\\x9F…' MySQL

巧了我就是萌 提交于 2019-11-26 18:35:56
I am trying to store a tweet in my MYSQL table. The tweet is: quiero que me escuches, no te burles no te rias, anoche tuve un sueño que te fuiste de mi vida 🎶🎶 The final two characters are both 'MULTIPLE MUSICAL NOTES' (U+1F3B6) , for which the UTF-8 encoding is 0xf09f8eb6 . The tweet_text field in my table is encoded in utf8mb4 . But when I try to store the tweet in that column I get the following error message: Incorrect string value: '\xF0\x9F\x8E\xB6\xF0\x9F...' for column 'tweet_text' at row 1. What is going wrong? How can I fix this? I need to store multiple languages as well and this