2

我正在使用 Godaddy 的 SQL 数据库中的土耳其字符显示数据,但我遇到了将Kadıkoy单词显示为Kad?koy. 我已将类型设置为 text 并将排序规则设置为 utf-8_turkish_ci 但它不起作用。甚至我也尝试过 ucs2_turkish_ci 和 latin5_turkish_ci 但没有奏效。

那么请问我的问题在哪里?

4

1 回答 1

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.

于 2013-07-18T10:29:58.800 回答