开发者

MySQL Problem with Umlauts

开发者 https://www.devze.com 2023-01-30 07:10 出处:网络
i have a big problem with umlauts. I have a normal registration Form. And when i click on Submit, i send the data via jQuery Ajax to a php Script.

i have a big problem with umlauts. I have a normal registration Form. And when i click on Submit, i send the data via jQuery Ajax to a php Script. This Script puts everything in my database.

The Database Collation is utf8_general_ci bu开发者_StackOverflow中文版t the umlauts are displayed like crap :D When i submit a new User to that database in the backend, where only php plays it works with umlauts.

Where is my fault? Can´t figure it out.

Thanks :)


Make sure that you're using UTF-8 everywhere in that chain. Your page needs to be encoded in UTF-8, so that the browser submits the user-data correctly. Check the Content-Type header of the request. Your webserver should deliver the MIME-type with ; encoding=UTF-8.

0

精彩评论

暂无评论...
验证码 换一张
取 消