Belgin Fish Belgin Fish - 5 months ago 90
PHP Question

Fix Turkish Charset Issue Html / PHP (iconv?)

i'm having troubles displaying turkish characters, they are appearing as the little question mark with the diamond in the background in html.

How can I use iconv to fix this? Since I think thats the best option right? Right now my page is utf-8 encoded.

I need to support characters like

ı
ñ
ş

aswell as be able to insert them into my db.

Thanks

Answer

Solved it by using

iconv("ISO-8859-1", "UTF-8", $text);