Replace diacritic characters with "equivalent" ASCII in PHP?
Posted
by Dolph Mathews
on Stack Overflow
See other posts from Stack Overflow
or by Dolph Mathews
Published on 2010-04-16T15:20:57Z
Indexed on
2010/04/16
15:23 UTC
Read the original article
Hit count: 533
Related questions:
- http://stackoverflow.com/questions/2653739/how-to-replace-characters-in-a-java-string
- http://stackoverflow.com/questions/2393887/how-to-replace-special-characters-with-their-equivalent-such-as-a-for-a
As in the questions above, I'm looking for a reliable, robust way to reduce any unicode character to near-equivalent ASCII using PHP. I really want to avoid rolling my own look up table.
For example (stolen from 1st referenced question): Gracišce
becomes Gracisce
© Stack Overflow or respective owner