# Slugs error for persian language

**URL:** https://meta.discourse.org/t/slugs-error-for-persian-language/26757
**Category:** Bug
**Created:** [25 Marzo 2015, 9:57am UTC](https://meta.discourse.org/t/slugs-error-for-persian-language/26757 "2015-03-25T09:57:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)
#### Post date: [25 Marzo 2015, 9:57am UTC](https://meta.discourse.org/t/slugs-error-for-persian-language/26757/1 "2015-03-25T09:57:22Z")

</div>

i have some problem whit use slugs

```
 Slug is already in use

```

but i dont have any similar slug and used slug

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [25 Marzo 2015, 12:54pm UTC](https://meta.discourse.org/t/slugs-error-for-persian-language/26757/2 "2015-03-25T12:54:13Z")

</div>

Just like with topics, category slugs can only use latin characters and dashes. The arabic characters that would make the slug unique are most likely silently removed, and the remaining empty or default slug is the same for several categories, hence the error.

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [25 Marzo 2015, 1:33pm UTC](https://meta.discourse.org/t/slugs-error-for-persian-language/26757/3 "2015-03-25T13:33:00Z")

</div>

In our Rails app, in cases when we need to make a slug from an arabic title, we generate a random hash. Don’t know if that’d be applicable here.

---

<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: [25 Marzo 2015, 2:27pm UTC](https://meta.discourse.org/t/slugs-error-for-persian-language/26757/4 "2015-03-25T14:27:06Z")

</div>

As elberet mentioned you can only use latin characters for slugs.  
Anyway, Discourse shouldn’t silently change the slug provided by the user. It should at least show an appropriate error message.

I guess if the following feature would be implemented, arabic slugs could work as well.

> [@Removing the concept of "slugs" for some languages](https://meta.discourse.org/t/removing-the-concept-of-slugs-for-some-languages/26643):
>
> Discourse is trying to shoehorn the concept of “pretty slugs” to non ascii char set based languages. It may be acceptable to do this transliteration in Norwegen or Turkish, but stuff gets really weird when you do it in Korean or Chinese or Arabic. When you look at alexa top 100 for say Egypt or China or any non-latin alphabet you never see this concept of a “slug” which is attempting to convert your alphabet to English. It is offensive and comical. Our default behavior, which is to “only keep …

---

<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: [23 Settembre 2015, 1:13pm UTC](https://meta.discourse.org/t/slugs-error-for-persian-language/26757/5 "2015-09-23T13:13:27Z")

</div>


