Replace umlaute (äüö) for SEO link in rails - best way
Posted
by ole_berlin
on Stack Overflow
See other posts from Stack Overflow
or by ole_berlin
Published on 2009-05-18T17:11:30Z
Indexed on
2010/03/29
14:03 UTC
Read the original article
Hit count: 114
Hi,
I'm using the permalink_fu plugin to create permalinks from titles. My problem is: If the title contains german characters, they are just replaced with '_'.
What I need is something that replaces ä with ae ü with ue ö with oe
I fount String.tr but the problem here is that it replaces 1 character with 1 replacement, so it would work for replacing
é with e ø with o
etc.
Does anyone have a nice and clean solution for that?
Thanks
© Stack Overflow or respective owner