Reputation: 589
I want to sanitize blog titles with unicode characters in url. I need to replace invalid characters and spaces with "-" for better seo rewriting like this.
http://example.com/это-моя-хорошая
Can anyone have any idea how to do it?
Upvotes: 1
Views: 1961
Reputation: 17957
You can use this algorithm for an SEO-friendly Unicode URL:
Upvotes: 3