php - UTF8 Characters not displayed correctly -
this question has answer here:
- utf-8 way through 14 answers
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
Post a Comment