php - UTF8 Characters not displayed correctly -


this question has answer here:

in mysql database have string german umlauts (ä, ö, ü).

i query them php/mysql , when displayed on website, show this:

i have html in website:

<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 

edit: have changed collations utf8_unicode_ci problem still persists

if have written html meta tag charset=utf-8 , have set collation utf8_unicode_ci character set , not working must use

 mysql_set_charset('utf8'); 

use have made connection file, this:-

    $link = mysql_connect("localhost","root","");     $db = mysql_select_db('testing');     mysql_set_charset('utf8'); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -