Prettier friendly URLs would be nice. Perhaps Url($Mixed) in library/core/class.format.php could be changed. Either changing the preg_replace line, or adding before it a str_replace with an array containing characters like "ö", and their replacements.
Something like this (but with more complete arrays obviously)
That way you'd get .../testing-friendly-urls-jonkoping which would look a lot friendlier.
PHP has a function called iconv, specifically for converting between different character encodings, but it looks like you can't really rely on it working on all systems, so str_replace/strtr/preg_replace/etc would probably be safer.
Comments
testing-friendly-urls-j-nk-ping
Looks bad :(
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Something like this (but with more complete arrays obviously)
$bad = array("å", "ä", "á", "à", "ă", "â", "ö", "ø", "ó", "ò", "ŏ", "ô");That way you'd get .../testing-friendly-urls-jonkoping which would look a lot friendlier.$good = array("a", "a", "a", "a", "a", "a", "o", "o", "o", "o", "o", "o");
$Mixed = str_replace($bad, $good, $Mixed);
PHP has a function called iconv, specifically for converting between different character encodings, but it looks like you can't really rely on it working on all systems, so str_replace/strtr/preg_replace/etc would probably be safer.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •