Problem with sluggable cyrillic symbols with iconv()

I try to transliterate cyrillic function using iconv php function.

$s = iconv('UTF-8', 'ASCII//TRANSLIT', $s);

But i always get

Notice: iconv(): Detected an illegal character in input string

How i cat to solve this problem?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *