replace non ascii characters when creating content: ïíäö to iiao
hi!
We are having issues when non-ascii characters are involved in the url.
Regex wasn't really helping and I don't understand if a provider could help me in this matter.
I've already prepared code to clean url, but I have no idea were to use it:
text = Regex.Replace(text, "[áàäâãåÁÀÄÂÃÅ]", "a")
text = Regex.Replace(text, "[óòöôõÓÒÖÔÕ]", "o")
text = Regex.Replace(text, "[éèëêÉÈËÊ]", "e")
text = Regex.Replace(text, "[úùüûÚÙÜÛ]", "u")
text = Regex.Replace(text, "[íìïîÍÌÏÎ]", "i")
Developing on Sitefinity 8.0
Hi,
You will need to create a custom ContentInboundPipe and override the PushData method. You can refer to our documentation for more information how to achieve this: http://docs.sitefinity.com/custom-inbound-pipe-pipe-interfaces
Regards,
Velizar Bishurov
Telerik