# Quotes in post titles converted to a different character

**URL:** https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227
**Category:** Bug
**Created:** [7월 17, 2019, 6:46오후 UTC](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227 "2019-07-17T18:46:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [7월 17, 2019, 6:46오후 UTC](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227/1 "2019-07-17T18:46:49Z")

</div>

Hi.

Since the last Discourse update, when I write a post title that contains a quote `'`, it is converted to ` ›` preceded by a single space when I create the post.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/f/cf04db19f28015bd52043017de0a0f975570b3cd.png)

If I click on the edit title button, the input correctly shows `'` but it is always converted to `›` (preceded by a single space) when I do confirm the title edition.

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

Also it appears that if I write a double quote `"`, it will be converted to `»`.

---

<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: [7월 17, 2019, 8:13오후 UTC](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227/2 "2019-07-17T20:13:49Z")

</div>

Hmm this looks like a new bug with the international quotes @zogstrip

---

<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: [7월 17, 2019, 9:14오후 UTC](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227/4 "2019-07-17T21:14:58Z")

</div>

@gerhard is already aware.

We might have to revert that commit, since our [`HtmlPrettify`](https://github.com/discourse/discourse/blob/ce8e09963903fcad725002b2d42b54b4af5d0930/lib/html_prettify.rb) is working on a “character-by-character” basis, it doesn’t know when a quote is the start of a matching pair or merely an apostrophe.

Something like [`smartquotes.js`](https://github.com/markdown-it/markdown-it/blob/28cec6d30a5b18ded43d595ed24ba7a095ed859f/lib/rules_core/smartquotes.js) might work but this is a [very complicated](https://en.wikipedia.org/wiki/Quotation_mark) problem.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [7월 18, 2019, 10:00오전 UTC](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227/5 "2019-07-18T10:00:42Z")

</div>

[https://github.com/discourse/discourse/commit/7e69c5cc369ac7c13aa6dd97e680830dcd462390](https://github.com/discourse/discourse/commit/7e69c5cc369ac7c13aa6dd97e680830dcd462390)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [7월 18, 2019, 10:00오전 UTC](https://meta.discourse.org/t/quotes-in-post-titles-converted-to-a-different-character/123227/6 "2019-07-18T10:00:48Z")

</div>


