Page 1 of 1

Japanese characters in alias

Posted: Mon Jan 18, 2010 7:32 am
by simplesimon
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!

Re: Japanese characters in alias

Posted: Mon Jan 18, 2010 9:48 am
by kurashiki_ben
thanks for that!!
I'll try it and let you know.

Re: Japanese characters in alias

Posted: Sat Jan 23, 2010 12:07 am
by kurashiki_ben
tested this and it works great so far!
I'll keep you up to date with any issues.
many thanks
Ben

Re: Japanese characters in alias

Posted: Sat Jun 26, 2010 2:00 pm
by calguy1000
Modifying your CMSMS install means you will not receive ANY support.
I'm keeping a list,

Re: Japanese characters in alias

Posted: Thu Nov 11, 2010 10:07 am
by kurashiki_ben
Hi Calguy,

Of course I understand that this is the case.
However, please consider the reasons that the hack has been done.
I.e. that utf-8 characters are an integral part of urls as used in many sites around the world, and for my site we can't live without them.
See my post here" http://forum.cmsmadesimple.org/index.ph ... 746.0.html

I would like you to consider including support for utf-8 characters (at least as an option) in a future version.

Best regards

Ben