+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / replace non ascii characters when creating content: ïíäö to iiao

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

2 posts, 0 answered
  1. Jesper
    Jesper avatar
    1 posts
    Registered:
    04 Aug 2015
    20 Oct 2015
    Link to this post

    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

  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    09 Dec 2016
    23 Oct 2015
    Link to this post
    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
     
2 posts, 0 answered