Question

in a Drupal 7 with PathAuto website:

In pathAuto settings I have something like "[term:vocabulary]/[term:name]" as a pattern in many categories, but because the vocabulary, taxonomy, etc names are not in English I have urls that contain non ascii characters. This is not bad but in IE is ugly (something like Portal/%CE%B5%CE%BC%CE%B2%CE etc.

I could use the machine name instead of the name or vocabulary, but I want something better.

In wordpress there are plugins that sanitize the url and I am using them in order to replace non ascii with ascii characters (eg α -> a, π -> p in greek, and so on)

How can I have such behavior in Drupal?

Was it helpful?

Solution

The solution is the Transliteration module.

Provides one-way string transliteration (romanization) and cleans file names during upload by replacing unwanted characters.

Generally spoken, it takes Unicode text and tries to represent it in US-ASCII characters (universally displayable, unaccented characters) by attempting to transliterate the pronunciation expressed by the text in some other writing system to Roman letters.

The module is supported by the PathAuto module.

For Pathauto 6.x-2.x: Transliteration is useful if your site is likely contain characters beyond ASCII 128 and you want them transliterated into ASCII 128. (For Pathauto 6.x-1.x that feature is handled by the Pathauto module, see the README.txt for more details).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top