Scandinavian character support in url management
Posted 04 July 2010 - 04:35 AM
The Scandinavian characters do not seem to work in the url management (probably CUrlRule does not support them).
I have the following config:
All urls work except when <name> contains Scandinavian characters. For example the following url does not work:
which is decoded to:
Do you know how I can fix this? I don’t want to remove or convert the Scandinavian characters as it would not be very good for the SEO...
Posted 05 July 2010 - 01:56 AM
Actually UrlRule should support Unicode characters. If you check the constructor code of CUrlRule, you see that the u modifier is added to every rule regex. Maybe you can do some debuggging to find out, why it's not applied correctly in your case?
Posted 07 July 2010 - 12:43 PM
The database is very old and is unfortunately not in utf8. I made the decision to change the url to only valid characters. I replace Å,Ä,Ö to A, A, O and so on...