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
.
精彩评论