Removing accents from strings in PHP

A simple method for removing accents from strings in PHP:

1
2
 $x = strtr($x, "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ",
		"SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy");

3 comments to Removing accents from strings in PHP

  • Hi, SID! How did you manage to fix Facebook Like plugin issue with Atahualpa theme? When I enable Facebook Like plugin with Atahualpa theme, I get Like button displayed in the header and the post. I looked at your old comment on the plugin site mentioning the same issue. When I checked out site now, I notice that the issue is now gone. What did you do to get it working? I would appreciate if you can share it. Thanks!

  • Sid

    I fixed it last year and I’ll be damned if I remember what I did. I’m looking at the files and none of them seems modified by hand in that period, so I guess I just tinkered with the settings until it worked. I’ll post back after I dig a bit more or if I remember what I did then.

  • Thanks, Sid! I’ll check back later to see if you remembered :-)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categories

Archives

Calendar

August 2017
M T W T F S S
« Jul    
 123456
78910111213
14151617181920
21222324252627
28293031