Fix Turkish Charset Issue Html / PHP (iconv?)

后端 未结 3 1153
情话喂你
情话喂你 2020-12-22 02:34

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

3条回答
  •  情话喂你
    2020-12-22 02:56

    Although that's true in general if $text contains some Turkish chars like "Çınar" translition will fail unless your environment is set to work on Turkish locale.

    In case you may need to set locale within php like below;

    setlocale(LC_ALL, 'tr_TR');
    

提交回复
热议问题