# Auto-replace emoji like ☺ with Discourse codes

**URL:** https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155
**Category:** Feature
**Created:** [2015年三月9日 21:23 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155 "2015-03-09T21:23:17Z")
**Posts on this page:** 12
**Page:** 2

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2015年十二月29日 21:42 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/21 "2015-12-29T21:42:31Z")

</div>

Okay I’ve added server side replacements for unicode emoji with our emoji sets.

Here’s a unicode bomb: 💣  
This is a bom using our emoji picker: 💣

They should look the same!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2015年十二月29日 22:40 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/22 "2015-12-29T22:40:47Z")

</div>

What about this one? ☺

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年十二月29日 23:03 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/23 "2015-12-29T23:03:23Z")

</div>

G​🎉🍕👫👯👌🏽

What happens with skin tone? Let’s see

👍👍🏻👍🏼👍🏽👍🏾👍🏿

Yeah we need to deal with this somehow

---

<div class="post-metadata">

### Author: ![nahtnam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nahtnam/32/122073_2.png) [@nahtnam](https://meta.discourse.org/u/nahtnam)
#### Post date: [2015年十二月29日 23:04 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/24 "2015-12-29T23:04:47Z")

</div>

Not good.

 ![](https://global.discourse-cdn.com/meta/original/3X/b/7/b7ab75450d6cbce8acf51d90a5094afddad7af53.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年十二月30日 01:48 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/25 "2015-12-30T01:48:01Z")

</div>

Looks OK in iOS

 ![](https://global.discourse-cdn.com/meta/original/3X/f/1/f1120e1cbdccd011d2e5ce5cfbac57063e1229cb.jpeg)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年十二月30日 02:54 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/26 "2015-12-30T02:54:04Z")

</div>

Yeah but we need to strip out the skin tone block unless we map it to a correct image.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2015年十二月30日 20:02 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/27 "2015-12-30T20:02:31Z")

</div>

> [@zogstrip](#):
>
> What about this one? ☺

Fixed now 🙂 I added a few extra unicode symbols for replacements which I think is fair. We can add more as we go on if we wish.

> [@sam](#):
>
> Yeah but we need to strip out the skin tone block unless we map it to a correct image.

I’m not sure that’s the correct thing to do. I understand getting skin tones in would be a great feature to add, but it involves making sure all our emoji sets have them all and that’s more work than this feature needed. Adding extra code to remove the default handling seems odd to me.

Note those skin tone blocks that are showing up are what happened before I implemented this feature – that did not change.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年一月4日 11:55 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/28 "2016-01-04T11:55:31Z")

</div>

This one is a big buggy as well

👨‍👨‍👧‍👦

should really be

![](https://global.discourse-cdn.com/meta/original/3X/b/2/b2b301c6b9894f8d1da401e86061f42a7c91b39e.png)

which is in the emoji one set

 ![](https://global.discourse-cdn.com/meta/original/3X/b/9/b9e72a01f6d3f608844da3f8bf553d6abf398fe9.png)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016年一月4日 18:37 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/29 "2016-01-04T18:37:29Z")

</div>

Again I hate to say “not a bug” but that is using the [zero width joiner](http://emojipedia.org/zero-width-joiner/) code to create pairings.

Like the different skin tones, there is work to be done to ensure that all our emoji sets support it as a modifier so we can display the appropriate combinations. One cool thing about it is it seems to support same sex families!

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年三月16日 23:10 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/30 "2016-03-16T23:10:22Z")

</div>

Could I ask… What is the current status of this feature?

To me it looks like “modifiers” are still to be completed, but for the most part other unicode emoji are complete…

However - I’ve noted that the following character is not working (`🙄`):

🙄

I believe it is a “[face with rolling eyes](http://emojipedia.org/face-with-rolling-eyes/)” emoji or something like this: “🙄”

### Edit - ignore - it appears to work when posted.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月16日 23:11 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/31 "2016-03-16T23:11:55Z")

</div>

Yeah, this is done, closing 🙂

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月16日 23:11 UTC](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155/32 "2016-03-16T23:11:58Z")

</div>



[上一頁](https://meta.discourse.org/t/auto-replace-emoji-like-with-discourse-codes/26155.md?page=1)
