Hi everyone,
I'm looking for a Kentico function that can take a word that contains special characters (Montrèal for example), strips away any special characters, and replaces them with regular characters. "e" in this case.
Any help with some syntax examples would be amazing.
Thanks in advance,
Shawn
Where would this be used in your site? Front-end(macro)? Back-end code(C#)?
Hi Joshua,
This would be used in a macro if possible (front-end).
Thanks,
http://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net
Might help.
Thanks Zachary,
I've tried this and can't get it to work really...
If there are any other suggestions on this, would be amazing!
Thanks!
Hi,
I think the best way would be to use the function Zachary Perry mentioned above and create your own custom macro.
For more info about creating and registering custom macro methods: https://docs.kentico.com/display/K9/Registering+custom+macro+methods
Greets,
David
Please, sign in to be able to submit a new answer.