Jump to content

Disabled accented characters in URLs?


NoSpy

Recommended Posts

Posted

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 !

  • 3 months later...
Posted

It seems that depending on the server setup the special characters doesnot work well with IPB.
Allow disabling special chars in URLs to administrators may be a good solution.

  • 1 month later...
Posted
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: 

 

Archived

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

  • Recently Browsing   0 members

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