replace non ascii characters when creating content: ïíäö to

Posted by Community Admin on 04-Aug-2018 14:00

replace non ascii characters when creating content: ïíäö to iiao

All Replies

Posted by Community Admin on 20-Oct-2015 00:00

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

Posted by Community Admin on 23-Oct-2015 00:00

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

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed