I'm using a form to record data in my database using AJAX. So, how this works? I get the form data via Javascript, request a URL which is written in PHP then insert to the database.
The problem is that I'm using Latin 1 characters so the form is expecting also accented characters like ó. I need to convert this ó to html (ó
) in javascript, so that I can pass it to PHP.
How doI do that?