Saving special letters (ü, č, ž..) to mysql database
I can't save some special letters like german umlaut (ü) or croatian letters (ž,š,č) to the MySQL database.
This is what I have done so far:
In html meta tag is set to:
<meta http-equiv='content-type'content='text/plain;charset=utf8_general_ci'>
In html form I've set the attribute accept-charset="utf8_general_ci"
in PHP I've set headers: header('Content-Type: text/plain; charset=utf8_general_ci');
in PHP I've set mysql_set_charset ( "utf8_general_ci", $link );
I've been trying to solve this for days.. I also tried with utf8_unicode_ci
.
What am I missing?
链接地址: http://www.djcxy.com/p/67826.html