`$('#form').serialize()` Messes Up Utf-8 Characters
I'm inserting a form with AJAX and I'm using: $('#form').serialize() to get all the input and send it to insert.php. The problem is that characters like á become %A9 and such. How
Solution 1:
Jquery serialize()
serializes as UTF-8. So á
becomes the correct UTF-8 encoding %c3%a1
. Try using the $_REQUEST
as that is already decoded as per the php documentation. here
Post a Comment for "`$('#form').serialize()` Messes Up Utf-8 Characters"