1

我有一个我无法理解的问题。

我的网站上的一切都运行顺利,但是当使用挪威语特殊字母时,查询无法在我的数据库中添加新行。Dreamweaver 和 PHPMyAdmin 中的两个文档都设置为 Latin/ISO-8859-1,因此理论上应该可以正常工作。通过 PHPMyadmin 手动编辑数据库时,每个字符都显示正常。没有破损的字母或问号。

我的查询很标准。

mysqli_query($con,"INSERT INTO customers (w_id, firstname, lastname, email, company, tlf, adress, city, zipcode, country)
     VALUES ('$webshop_info[w_id]', '$firstname', '$lastname', '$email', '$company', '$tlf', '$adress', '$city', '$zipcode', '$country')");

有什么想法、建议或解决方法吗?

4

1 回答 1

0

问题出在 charsets 的某处
1. php 版本不合适
2. html 中的 char-set meta 未设置
3. 数据库排序错误


请尝试使用 unicode。

于 2013-09-26T23:30:26.433 回答