Questions tagged [emoji]

Emojis are pictures or Unicode characters (such as smileys) that can be placed alongside text characters.

Emoji (絵文字えもじ?, Japanese pronunciation: [emodʑi]) are the ideograms or smileys used in Japanese electronic messages and Web pages, the use of which is spreading outside Japan. Originally meaning pictograph, the word emoji means "picture" (e) + "character" (moji). Although initially only available in Japan, some emoji character sets have been incorporated into Unicode, allowing them to be used elsewhere as well. As a result, emoji have become increasingly popular after their international inclusion in Apple's iOS in 2011 as the Apple Color Emoji typeface, which was followed by similar adoption by Android and other mobile operating systems.

- Keep it !

2555 questions
584
votes
6 answers

Why are emoji characters like ‍‍‍ treated so strangely in Swift strings?

The character ‍‍‍ (family with two women, one girl, and one boy) is encoded as such: U+1F469 WOMAN, ‍U+200D ZWJ, U+1F469 WOMAN, U+200D ZWJ, U+1F467 GIRL, U+200D ZWJ, U+1F466 BOY So it's very interestingly-encoded; the perfect target for a unit test.…
Ky -
  • 30,724
  • 51
  • 192
  • 308
210
votes
7 answers

Remove ✅, , ✈ , ♛ and other such emojis/images/signs from Java strings

I have some strings with all kinds of different emojis/images/signs in them. Not all the strings are in English -- some of them are in other non-Latin languages, for example: ▓ railway?? → Cats and dogs I'm on Apples ⚛ ✅ Vi sign ♛ I'm the king ♛…
riorio
  • 6,500
  • 7
  • 47
  • 100
204
votes
10 answers

How to reverse a string that contains complicated emojis?

Input: Hello world‍‍‍‍ Desired Output: ‍‍‍‍dlrow olleH I tried several approaches but none gave me correct answer. This failed miserablly: const text = 'Hello world‍‍‍‍'; const reversed =…
Hao Wu
  • 17,573
  • 6
  • 28
  • 60
180
votes
14 answers

How to prevent Unicode characters from rendering as emoji in HTML from JavaScript?

I'm finding Unicode for special characters from FileFormat.Info's search. Some characters are rendering as the classic black-and-white glyphs, such as ⚠ (warning sign, \u26A0 or ⚠). These are preferable, since I can apply CSS styles (such as…
anon
134
votes
18 answers

Find out if Character in String is emoji?

I need to find out whether a character in a string is an emoji. For example, I have this character: let string = "" let character = Array(string)[0] I need to find out if that character is an emoji.
Andrew
  • 7,693
  • 11
  • 43
  • 81
113
votes
8 answers

How to set emoji by unicode in a textview?

Hi I'd like to do the following: ??? unicode = U+1F60A String emoji = getEmojiByUnicode(unicode) String text = "So happy " textview.setText(text + emoji); to get this in my textview: So happy How can I implement getEmojiByUnicode(unicode)? What…
Gilbert Giesbert
  • 3,338
  • 3
  • 13
  • 10
94
votes
9 answers

MySQL utf8mb4, Errors when saving Emojis

I try to save names from users from a service in my MySQL database. Those names can contain emojis like (just for examples) After searching a little bit I found this stackoverflow linking to this tutorial. I followed the steps and it looks like…
Loki
  • 4,065
  • 4
  • 29
  • 51
92
votes
27 answers

removing emojis from a string in Python

I found this code in Python for removing emojis but it is not working. Can you help with other codes or fix to this? I have observed all my emjois start with \xf but when I try to search for str.startswith("\xf") I get invalid character…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
82
votes
9 answers

Color for Unicode Emoji

It's possible to include Emoji characters in modern browsers, but how can one make it a single color and choose that color? For example, here is some Emoji and some regular (plane 0) Unicode symbols. All should be red, but only the symbols are…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
79
votes
11 answers

How to detect emoji using javascript

I need help for how to detect if an input contains a Japanese emoji/emoticon. Currently my character set is charset=utf-8. On inputting text, the user can enter Japanese characters/alpanumerics/symbols but if they insert an emoji, onsubmit…
user2699175
  • 929
  • 2
  • 9
  • 16
78
votes
2 answers

Why does the red heart emoji require two code points, but the other colored hearts require one?

It appears that the red heart emoji (❤️) "\u2764\uFE0F" requires two Unicode codepoints, specifically Heavy Black Heart followed by a Variation Selector. However, blue , green , yellow , and purple each have their own single codepoint. Why is red…
Newtang
  • 6,414
  • 10
  • 49
  • 70
75
votes
16 answers

How to extract all the emojis from text?

Consider the following list: a_list = [' me así, bla es se ds '] How can I extract in a new list all the emojis inside a_list?: new_lis = [' '] I tried to use regex, but I do not have all the possible emojis encodings.
tumbleweed
  • 4,624
  • 12
  • 50
  • 81
71
votes
18 answers

What is the regex to extract all the emojis from a string?

I have a String encoded in UTF-8. For example: Thats a nice joke I have to extract all the emojis present in the sentence. And the emoji could be any When this sentence is viewed in terminal using command less text.txt it is viewed as: Thats a…
vishalaksh
  • 2,054
  • 5
  • 27
  • 45
64
votes
20 answers

How to remove emoji code using javascript?

How do I remove emoji code using JavaScript? I thought I had taken care of it using the code below, but I still have characters like . function removeInvalidChars() { return this.replace(/[\uE000-\uF8FF]/g, ''); }
manraj82
  • 5,929
  • 24
  • 56
  • 83
61
votes
6 answers

Implementations of Emoji (Emoticon) View/Keyboard Layouts

I am trying to figure out how the emoji (emoticon) selections are implemented on the Facebook app and the Google Hangouts app. I looked into the SoftKeyboard Demo app in the Android API Samples but the display of these emoji views does not look…
Etienne Lawlor
  • 6,817
  • 18
  • 77
  • 89
1
2 3
99 100