php - Replace worldwide diacritics characters -


possible duplicate:
php: replace umlauts closest 7-bit ascii equivalent in utf-8 string

i want replace diacritics characters non-diacritics brother. example: "guľôčka" wanna "gulocka"

is here native function it?

i looking list of worldwide diacritics characters replace str_replace. can't find it.

thanks lot.

you can achieve using iconv, available in php, , requesting encoding conversion transliteration. (this works many different scripts!) if want basic european characters, make target latin-1, or ascii.

from manual page:

iconv("utf-8", "iso-8859-1//translit", $text) 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -