# Some unicode emojis are substituted incorrectly

**URL:** <https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208>\
**Category:** Bug\
**Created:** [October 4, 2020, 6:39pm UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208 "2020-10-04T18:39:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)\
**Post date:** [October 4, 2020, 6:39pm UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208/1 "2020-10-04T18:39:00Z")

</div>

Our users point out a problem in converting Unicode emojis. when we send ☹ emoji with the phone keyboard and send the message, ☹ emoji is inserted in the instead. Also, when we insert the 😌 emoji as Unicode, the 🙂 emoji will be replaced.

---

<div class="post-metadata">

**Author:** ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)\
**Post date:** [October 4, 2020, 6:54pm UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208/2 "2020-10-04T18:54:21Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/1/e/1e8ebce0eae81c89eba3a7013dc7b8993343f94b.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:** [October 4, 2020, 10:53pm UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208/3 "2020-10-04T22:53:30Z")

</div>

Let’s see, inserting using the Windows 10 emoji picker:

☹

and

😊

I can confirm the first but not the second.

---

<div class="post-metadata">

**Author:** ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)\
**Post date:** [October 5, 2020, 6:12am UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208/4 "2020-10-05T06:12:56Z")

</div>

> [@codinghorror](#):
>
> but not the second.

Because you used a `:blush:` emoji 😊  
But problem is:

| Unicode Emoji | Replaced With |
| --- | --- |
| ☹ frowning\_face | ☹ frowning |
| 😌 relaxed | 🙂 slight\_smile |

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [December 6, 2020, 5:29pm UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208/7 "2020-12-06T17:29:16Z")

</div>

Once [FIX: do not replace smiling\_face by slight\_smile by jjaffeux · Pull Request #11412 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/11412) is in tests-passed, they should both be fixed (I fixed the other one weeks ago).

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [December 12, 2020, 1:29am UTC](https://meta.discourse.org/t/some-unicode-emojis-are-substituted-incorrectly/166208/8 "2020-12-12T01:29:17Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
