Japanese characters in alias
Posted: Mon Jan 18, 2010 7:32 am
I'm not sure if this is a bad way to do it. I'm just posting this here.
in lib/misc.functions.php in function munge_string_to_url
...snip...
This is how I like my URLs. This may only work with "pretty URLs"/mod_rewrite. Full-width and normal spaces are replaced by a minus. Then all other punctuation and non-kanji/kana/roman characters minuses and underscores are discarded.
...snip...
Let me state once more, that I'm not sure if this breaks anything or even generates valid URLs.
In anyone has any comments or corrections, I'd be very interested to hear them.
Many thanks!
in lib/misc.functions.php in function munge_string_to_url
...snip...
This is how I like my URLs. This may only work with "pretty URLs"/mod_rewrite. Full-width and normal spaces are replaced by a minus. Then all other punctuation and non-kanji/kana/roman characters minuses and underscores are discarded.
...snip...
Let me state once more, that I'm not sure if this breaks anything or even generates valid URLs.
In anyone has any comments or corrections, I'd be very interested to hear them.
Many thanks!