-3

在我的 mysql 数据库中,我有带有德语变音符号(ä、ö、ü)的字符串。

我用 php/mysql 查询它们,当显示在我的网站上时,它们显示如下:

�</p>

我的网站上有这个 html:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

编辑:我已将所有排序规则更改为 utf8_unicode_ci 但问题仍然存在

4

1 回答 1

1

If you have written html meta tag as charset=UTF-8 and you have set Collation as utf8_unicode_ci character set and its not working then you must use

 mysql_set_charset('utf8');

use this where you have made your connection file, like this:-

    $link = mysql_connect("localhost","root","");
    $db = mysql_select_db('testing');
    mysql_set_charset('utf8');
于 2013-05-20T13:17:35.070 回答