2

I am displaying data with Turkish characters from SQL database of Godaddy but I have issue that it displays Kadıkoy word to Kad?koy. I have set the type to text and collation to utf-8_turkish_ci but it didn't work. Even I have tried ucs2_turkish_ci and latin5_turkish_ci but didn't work.

So please where could be my problem?

Luai Kalkatawi
  • 1,494
  • 5
  • 25
  • 51

1 Answers1

0

First of all, make sure the file is actually saved in UTF-8 format. Then check that you have meta tag Content-Type in your html content is "text/html;charset=UTF-8"

In your HTML header:

You can also try calling header('Content-Type: text/html; charset=utf-8'); at the beginning of your PHP script or adding AddDefaultCharset UTF-8 to your .htaccess file.

Keith Pinson
  • 7,604
  • 6
  • 56
  • 100
Muhammad Asif Mahmood
  • 1,592
  • 1
  • 8
  • 9