# 😿 Emoji's in title shown as code on initial load of a topic page

**URL:** https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930
**Category:** Bug
**Created:** [12 Outubro , 2017 12:25 UTC](https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930 "2017-10-12T12:25:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [12 Outubro , 2017 12:25 UTC](https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930/1 "2017-10-12T12:25:11Z")

</div>

## Steps to Reproduce

1. Load [meta.discourse.org](http://meta.discourse.org) (Refresh)

2. Click on any topic with an emoji in the title

3. Look at the tab title – emoji as code

Note: Reloading content via XHR sets the emoji correctly. It is only with a fresh load that the emoji code appears (e.g. from clicking on a notification link jumping directly to a topic).

---

<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: [12 Outubro , 2017 22:14 UTC](https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930/2 "2017-10-12T22:14:37Z")

</div>

Is this related to your recent title fix @sam?

---

<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: [12 Outubro , 2017 22:17 UTC](https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930/4 "2017-10-12T22:17:14Z")

</div>

Yeah something is off… bumps

---

<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: [21 Dezembro , 2017 04:25 UTC](https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930/6 "2017-12-21T04:25:50Z")

</div>

This is fixed per:

[https://github.com/discourse/discourse/commit/081959227de72c7473d36618bb02ddea3e42ebcd](https://github.com/discourse/discourse/commit/081959227de72c7473d36618bb02ddea3e42ebcd)

Note to [@team](https://meta.discourse.org/groups/team) this also adds proper support for `String#match?` which is available in 2.4 Ruby and backported to 2.3, be sure to use that when checking if a string matches a regex, it is faster than `=~` cause it does not need to keep track of a pile of globals.

---

<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: [22 Dezembro , 2017 07:00 UTC](https://meta.discourse.org/t/crying-cat-face-emojis-in-title-shown-as-code-on-initial-load-of-a-topic-page/71930/7 "2017-12-22T07:00:02Z")

</div>

This topic was automatically closed after 26 hours. New replies are no longer allowed.
