Jump to content

Disabled accented characters in URLs?


NoSpy

Recommended Posts

Hello,

This code is used to convert accented characters not unaccented characters into URLs

function formatrewriting($chaine){
 $chaine=trim($chaine);
 $chaine= strtr($chaine,"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ","aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");
 $chaine = preg_replace('/([^.a-z0-9]+)/i', '-', $chaine);
 return $chaine;
}

Could you fix this bug by disabling accented characters in URLs if webmaster want !

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
On 9/16/2018 at 12:41 PM, NoSpy said:

Hello,

This code is used to convert accented characters not unaccented characters into URLs


function formatrewriting($chaine){
 $chaine=trim($chaine);
 $chaine= strtr($chaine,"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ","aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");
 $chaine = preg_replace('/([^.a-z0-9]+)/i', '-', $chaine);
 return $chaine;
}

Could you fix this bug by disabling accented characters in URLs if webmaster want !

You can use this plugin: 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...