• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accentuated characters in url

#7
[eluser]Pascal Kriete[/eluser]
And the full transliteration code for nico's list (blatantly stolen from the owasp php filter):
Code:
$string = strtr($string,
    "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ",
    "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy");

This is a little rough, but works for most purposes (ä, ö, ü and ß should really use the proper: ae, oe, ue, ss).


Messages In This Thread
Accentuated characters in url - by El Forum - 06-25-2008, 01:47 AM
Accentuated characters in url - by El Forum - 06-25-2008, 02:33 AM
Accentuated characters in url - by El Forum - 06-25-2008, 03:20 AM
Accentuated characters in url - by El Forum - 06-25-2008, 03:41 AM
Accentuated characters in url - by El Forum - 09-05-2008, 08:56 AM
Accentuated characters in url - by El Forum - 09-05-2008, 09:15 AM
Accentuated characters in url - by El Forum - 09-05-2008, 09:26 AM
Accentuated characters in url - by El Forum - 09-05-2008, 09:49 AM
Accentuated characters in url - by El Forum - 09-05-2008, 10:05 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.