2012-12-23, 20:05:05
Makes sure correct slug/URL transliteration for non US-ASCII characters in Spanish, French, Italian, Portuguese....
Can be especially useful for servers not supporting mb encoding.
Also fixes issues like 'ü' being converted to 'ue' (should be 'u'), and with Spanish marks ¿ ¡
Usage: unzip and upload to your plugins folder.
Includes these character conversions:
Please let me know if I should add some other char.
Can be especially useful for servers not supporting mb encoding.
Also fixes issues like 'ü' being converted to 'ue' (should be 'u'), and with Spanish marks ¿ ¡
Usage: unzip and upload to your plugins folder.
Includes these character conversions:
Code:
# vowels:
'á'=>'a', 'é'=>'e', 'í'=>'i', 'ó'=>'o', 'ú'=>'u',
'Á'=>'a', 'É'=>'e', 'Í'=>'i', 'Ó'=>'o', 'Ú'=>'u',
'à'=>'a', 'è'=>'e', 'ì'=>'i', 'ò'=>'o', 'ù'=>'u',
'À'=>'a', 'È'=>'e', 'Ì'=>'i', 'Ò'=>'o', 'Ù'=>'u',
'ä'=>'a', 'ë'=>'e', 'ï'=>'i', 'ö'=>'o', 'ü'=>'u',
'Ä'=>'a', 'Ë'=>'e', 'Ï'=>'i', 'Ö'=>'o', 'Ü'=>'u',
'â'=>'a', 'ê'=>'e', 'î'=>'i', 'ô'=>'o', 'û'=>'u',
'Â'=>'a', 'Ê'=>'e', 'Î'=>'i', 'Ô'=>'o', 'Û'=>'u',
# consonants:
'ñ'=>'n', 'ç'=>'c',
'Ñ'=>'n', 'Ç'=>'c',
# marks:
'¿'=>'', '¡'=>''
Please let me know if I should add some other char.