How to use Mozilla's unicode-slugify instead of unidecode?

asked 2012-07-22 17:08:50 -0500

MehdiHKhan gravatar image

updated 2012-07-22 17:26:55 -0500

Evgeny gravatar image


For SEO causes, I want to use Unicode URLs instead of converted ASCII letters done by Unidecode. Seems like Mozilla's unicode-slugify (Github) is the right choice.

How can I replace Unidecode with unicode-slugify in askbot?

edit retag flag offensive close merge delete


I've heard of this library - can you explain why it is better? Hey, btw - both of your links are broken.

Evgeny gravatar image Evgeny  ( 2012-07-22 17:09:43 -0500 )edit

We can add this as a feature, probably the web is going to use Unicode in the urls more anyway.

Evgeny gravatar image Evgeny  ( 2012-07-22 17:26:22 -0500 )edit

Sorry, fixed the links. Well, I cannot compare both libraries regarding quality of code, support, number of users, but the use cases are definitely different. Whenever I tried askbot in Bengali, Unidecode just made my Jaw drop. Yes, it is much human friendly. But humans don't memorize permalinks, that's the job of search engine. And when people search something in languages other than English, they don't bother to transliterate that first (even if they do, it is less likely to be exact match of Unidecode converted value). That's why I was looking for a true Unicode replacement for the URLs.

MehdiHKhan gravatar image MehdiHKhan  ( 2012-07-22 17:31:55 -0500 )edit

@Evgeny, that'd be great. We are thinking to move permanently from our old forum to a QA a based platform for providing support, and most of our users write in Bengali. Can you give any estimation or roadmap when it'll be done? I'll appreciate some guidance so that I can do it myself and kickstart as soon as possible.

MehdiHKhan gravatar image MehdiHKhan  ( 2012-07-22 17:36:36 -0500 )edit

@MehdiHKhan we'll have it in the next release, maximum two week wait but in the repository this will be sooner.

Evgeny gravatar image Evgeny  ( 2012-07-22 17:40:44 -0500 )edit