Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的领域里有这样的词:
Überblick
当我将它们保存到数据库时,它变为:
Ãberblick
我试过了:
htmlspecialchars $db->escape mysql_real_escape_string
使用 PHP 将其保存到 mysql 数据库的正确解决方案是什么?
初始化连接后,执行以下操作:mysqli_set_charset("utf8");
mysqli_set_charset("utf8");