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:

  • Database collation is set to utf8_general_ci
  • Table collation is set to utf8_general_ci
  • Row collation is set to utf8_general_ci
  • 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

    上一篇: 使用JSON和一些特殊字符时,最好的排序规则是什么?

    下一篇: 保存特殊字母(ü,č,ž..)到mysql数据库