I’m working on multilingual Asp.NET MVC application. In url i need to use category name.
Is there any way how to convert i.e japanese text to its url safe equivalent?
Or should i use original text in url(www.example.com/製品/車 = http://www.example.com/product/car)?
EDIT:
I need SEO firenly urls. I know how to strip diacritics and replace spaces(or other special characters) with ‘-‘. But i wonder how to deal with foreign languages like Japanese, Russian etc.
You could UrlEncode the path elements, but the result will be illegible for the human eye (and probably search engines as well). Translating the elements to English or romanizing them sounds like a good idea. You need a dictionary though: