Does anyone know if theres a bug on MySQL Query Browser tool for UTF 8 insert?
if i do:
INSERT INTO tbl VALUES ('Hellá');
I got the (‘Hell�’) string in the browser.
That happens only with data inserted into DB via MySQL Query Browser Tool.
Note: Using Ajax/PHP on Apache 2.2 server with those config for PHP
header('Content-type: text/html; charset=utf-8');
And html set to:
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' http://www.w3.org/TR/html4/strict.dtd'>
with:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Also in the FireFox properties for the page its fully UTF8.
Also the page was constructed using NotePad++ already codified in UTF8.
And… data inserted via Ajax is ok.
So…. what i’m missing…???
Best Regards.
EDIT:
Table charset UTF8 and
Table collation UTF8_general_ci.
also for gods sake… in my.ini:
[client]
default-character-set=utf8
port=3306
[mysql]
default-character-set=utf8
You need to explicitly set the character set in PHP using mysql_set_charset or equivalent method/function