howto using german umlaute and rewrite
Version: 4.1.26
URL:
|
frankbeckers
Forum Regular Usergroup: Customer Joined: Dec 20, 2007 Location: Germany Total Topics: 33 Total Posts: 106 |
Posted 01/20/08 - 8:33 AM:
Hi, is there any howto available for using german umlaute (äöüÄÖÜß) and mod_rewrite? I want to use this kind of character in some category name. Example: Schüßler will be rewrite'd to Schusler, which is for searchengines not the same. It is totally another word. A circumvention will be Schuessler. Is there any help available? Regards, Frank |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 01/21/08 - 4:06 AM:
You can choose what to replace accents with using the $accenttweak tweak: http://scripts.webmastersite.net/w...rticles/tweaksphp-359.html |
|
frankbeckers
Forum Regular Usergroup: Customer Joined: Dec 20, 2007 Location: Germany Total Topics: 33 Total Posts: 106 |
Posted 01/21/08 - 11:36 AM:
I have read the manual, but I have not understood it. $accenttweak['from'] = ''; // for url rewriting, accented characters to replace $accenttweak['to'] = ''; // for url rewriting, replacements for accented characters and the coding is like this if (isset($accenttweak)) $string = str_replace(str_split($accenttweak['from']), str_split($accenttweak['to']), $string); What I have to do, when I want to translate all together? ä to ae ü to ue ö to oe ß to ss Ä to Ae Ü to Ue Ö to Oe |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 01/22/08 - 5:50 PM:
It doesn't handle non-1-to-1 correspondence, so it can't do that. |
|
frankbeckers
Forum Regular Usergroup: Customer Joined: Dec 20, 2007 Location: Germany Total Topics: 33 Total Posts: 106 |
Posted 01/22/08 - 9:52 PM:
whats about an extension/correction to tweak_vars like this ... If an array is used a non-1-to-1 correspondence is possible. I think for all languages with special characterset it could be very usefull. But I don't know if this works in both direction of mod_rewrite. Edited by frankbeckers on 01/22/08 - 9:54 PM |
Sorry, you don't have permission to post. Log in, or register if you haven't yet.

Print