# Sinhala Devanagari Sinhala slug for Unicode?

**URL:** https://meta.discourse.org/t/slug-for-unicode/70319
**Category:** Support
**Created:** [September 19, 2017, 12:03am UTC](https://meta.discourse.org/t/slug-for-unicode/70319 "2017-09-19T00:03:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sahan\_Sanjeewa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sahan_sanjeewa/32/78987_2.png) [@Sahan\_Sanjeewa](https://meta.discourse.org/u/Sahan_Sanjeewa)
#### Post date: [September 19, 2017, 12:03am UTC](https://meta.discourse.org/t/slug-for-unicode/70319/1 "2017-09-19T00:03:19Z")

</div>

දිවයිනේ දැවැන්තම සාහිත්‍ය මංගල්‍යය ලෙසින් සැලකෙන කොළඹ ජාත්‍යන්තර පොත් ප්‍රදර්ශනය මෙවරත් සැප්තැම්බර් 15වනදා සිට 24වනදා දක්වා කොළඹ බණ්ඩාරනායක සම්මන්ත්‍රණ ශාලා පරිශ්‍රයේ දී පැවැත්වීමට කටයුතු යොදා තිබේ. (සිකුරාදා සහ සෙනසුරාදා යන දිනවල උදෑසන 9 සිට රාත‍්‍රි 10 දක්වා ප‍්‍රදර්ශනය විවෘතව තැබෙනවා.

---

<div class="post-metadata">

### Author: ![Sahan\_Sanjeewa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sahan_sanjeewa/32/78987_2.png) [@Sahan\_Sanjeewa](https://meta.discourse.org/u/Sahan_Sanjeewa)
#### Post date: [September 19, 2017, 12:04am UTC](https://meta.discourse.org/t/slug-for-unicode/70319/2 "2017-09-19T00:04:34Z")

</div>

Check this discussions Slug ☹ its only showing some numbers 😃

can i make it unicode friendly ?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 19, 2017, 12:13am UTC](https://meta.discourse.org/t/slug-for-unicode/70319/3 "2017-09-19T00:13:57Z")

</div>

Slugs can contain only plain old ascii, not characters from other character sets.

Google translate suggests the below, which could be in a slug.

divayinē dævæntama sāhitya maṁgalyaya lesin sælakena koḷam̆ba jātyantara pot pradarśanaya mevarat

---

<div class="post-metadata">

### Author: ![Sahan\_Sanjeewa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sahan_sanjeewa/32/78987_2.png) [@Sahan\_Sanjeewa](https://meta.discourse.org/u/Sahan_Sanjeewa)
#### Post date: [September 19, 2017, 12:19am UTC](https://meta.discourse.org/t/slug-for-unicode/70319/4 "2017-09-19T00:19:55Z")

</div>

This is sinhala unicode. if i launch my forum with this script 😉 my members will always use sinhala unicode..

then urls should have sinhala unicodes… if not google will not understand it ☹ bad for SEO

Look At this Example - [http://geek.lk/discussion/657/ආධුනිකයින්-සදහා-සිංහල-වෙබ්-නිර්මාණ-පාඩම්-මාලාව](http://geek.lk/discussion/657/%E0%B6%86%E0%B6%B0%E0%B7%94%E0%B6%B1%E0%B7%92%E0%B6%9A%E0%B6%BA%E0%B7%92%E0%B6%B1%E0%B7%8A-%E0%B7%83%E0%B6%AF%E0%B7%84%E0%B7%8F-%E0%B7%83%E0%B7%92%E0%B6%82%E0%B7%84%E0%B6%BD-%E0%B7%80%E0%B7%99%E0%B6%B6%E0%B7%8A-%E0%B6%B1%E0%B7%92%E0%B6%BB%E0%B7%8A%E0%B6%B8%E0%B7%8F%E0%B6%AB-%E0%B6%B4%E0%B7%8F%E0%B6%A9%E0%B6%B8%E0%B7%8A-%E0%B6%B8%E0%B7%8F%E0%B6%BD%E0%B7%8F%E0%B7%80)

It’s sinhala unicode title and it shows in slugs 😃

---

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [September 19, 2017, 12:41am UTC](https://meta.discourse.org/t/slug-for-unicode/70319/5 "2017-09-19T00:41:38Z")

</div>

There is a site setting for this:

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

If you set it to `encoded`, slugs will contain non-ASCII characters.

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

* * *

**Note**

There was (is?) a infinite-redirect problem due to having non-ASCII characters in the topic slug. I don’t think this has been fixed yet.

> [@Removing the concept of "slugs" for some languages](https://meta.discourse.org/t/removing-the-concept-of-slugs-for-some-languages/26643/24):
>
> If a topic has the test งಠಠง and slug generation method is “encoded” the slug is test-งಠಠง. This is a nasty problem cause the actual UI will cause a fight with the browser. The browser sends over the slug as test-%E0%B8%87%E0%B2%A0%E0%B2%A0%E0%B8%87 and we perform no decoding on our side which leads to an infinite redirect in the topic page, if you hit reload. It feels to me like “encoded” should be always percent encoded.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 19, 2017, 6:29am UTC](https://meta.discourse.org/t/slug-for-unicode/70319/6 "2017-09-19T06:29:39Z")

</div>

> [@xrav3nz](#):
>
> There was (is?) a infinite-redirect problem due to having non-ASCII characters in the topic slug. I don’t think this has been fixed yet.

Yep, **is**. The infinite-redirect issue is not been resolved. It is a [Ruby/Rails issue](https://meta.discourse.org/t/automatic-encoding-of-parsed-url-params/67232/27), so we won’t get it resolved until we move from Rails 4 to 5.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:44pm UTC](https://meta.discourse.org/t/slug-for-unicode/70319/7 "2024-06-08T12:44:16Z")

</div>

This topic was automatically closed after 2454 days. New replies are no longer allowed.
