# Turkish character problem in title

**URL:** https://meta.discourse.org/t/turkish-character-problem-in-title/190526
**Category:** Feature
**Created:** [May 15, 2021, 10:30pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526 "2021-05-15T22:30:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)
#### Post date: [May 15, 2021, 10:30pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/1 "2021-05-15T22:30:30Z")

</div>

hi,

I have a problem as below;

site language is Turkish.  
when i paste a word as a title like **GIDA** it shown as **gida**. But it must be **gıda**. Because GIDA has **I** not **İ**.

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

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

Any idea please.

Thanks.

---

<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: [May 15, 2021, 11:10pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/2 "2021-05-15T23:10:37Z")

</div>

This happens when the title has only uppercase letters, the site setting `title_prettify` is enabled and the site setting `allow_uppercase_posts` is disabled.

Ruby has an optional parameter for [`String#downcase`](https://ruby-doc.org/core-2.7.1/String.html#method-i-downcase) that we could use when the default locale is Turkish, but I’m really on the fence here. What if someone uses “CIA BLA BLA” as topic title on a Turkish forum?

So, here are some solutions for you:

- Don’t use all uppercase letters in titles: “GIDA BLA BLA bla” would works fine!
- Or enable the `allow_uppercase_posts` site setting
- Or disable the `title_prettify` site setting

---

<div class="post-metadata">

### Author: ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)
#### Post date: [May 15, 2021, 11:20pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/3 "2021-05-15T23:20:22Z")

</div>

thank you.

So there is no solution until you mentioned below is live. Right?

> [@gerhard](#):
>
> Ruby has an optional parameter for [`String#downcase`](https://ruby-doc.org/core-2.7.1/String.html#method-i-downcase) that we could use when the default locale

> [@gerhard](#):
>
> What if someone uses “CIA BLA BLA” as topic title on a Turkish forum?

it is just a example 🙂

> [@gerhard](#):
>
> Don’t use all uppercase letters in titles

i will use discourse as a wiki for a project, only way is coping texts from somewhere and all titles are uppercase ☹

> [@gerhard](#):
>
> Or enable the `allow_uppercase_posts` site setting

this may be so ugly ☹

> [@gerhard](#):
>
> disable the `title_prettify` site setting

but i need this 🙂

---

<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: [May 18, 2021, 2:39am UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/4 "2021-05-18T02:39:17Z")

</div>

> [@ufukayyildiz](#):
>
> but i need this

I am going to change this to #Contribute > Feature

The feature request here is to support `title_prettify` when a site’s locale is set to Turkish.

I think this is a reasonable request as long as you can help us set out where the rules in core diverge for cases where the locale of the site is Turkish.

---

<div class="post-metadata">

### Author: ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)
#### Post date: [May 18, 2021, 7:48am UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/5 "2021-05-18T07:48:38Z")

</div>

Thank you.

It is a pleasure for me.

I can share a list with you.

---

<div class="post-metadata">

### Author: ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)
#### Post date: [May 18, 2021, 10:35pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/6 "2021-05-18T22:35:09Z")

</div>

Hi,

I prepared a list. If it is not enough, i can do more. thank you.

[title\_prettify\_turkish - Sheet1.pdf](https://meta.discourse.org/uploads/short-url/p71yyRxj3h0EjfUxUB8kLXGfcXy.pdf) (52.2 KB)

---

<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: [May 18, 2021, 11:21pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/7 "2021-05-18T23:21:08Z")

</div>

> [@gerhard](#):
>
> Ruby has an optional parameter for [`String#downcase`](https://ruby-doc.org/core-2.7.1/String.html#method-i-downcase) that we could use when the default locale is Turkish, but I’m really on the fence here. What if someone uses “CIA BLA BLA” as topic title on a Turkish forum?

I say if `SiteSetting.default_locale` is set to `tr_TR` it makes sense to use `:turkic` versions of `downcase` / `capitalize` etc in `TextCleaner`

Seems like the right thing to do. I guess if we want to provide an escape hatch we could make a hidden site setting to disable this on Turkish sites that use English titles.

Do you want to take this @gerhard ?

---

<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: [May 21, 2021, 1:57pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/9 "2021-05-21T13:57:12Z")

</div>

[https://github.com/discourse/discourse/pull/13115](https://github.com/discourse/discourse/pull/13115)

---

<div class="post-metadata">

### Author: ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)
#### Post date: [May 24, 2021, 5:21pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/10 "2021-05-24T17:21:20Z")

</div>

Problem solved. Thanks again 😌

---

<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: [May 24, 2021, 8:35pm UTC](https://meta.discourse.org/t/turkish-character-problem-in-title/190526/11 "2021-05-24T20:35:16Z")

</div>


