I have an HTML5 form collecting personal data. The output from the form is passed to a php/HTML file which does three things with it.
mail()
function) with some of the input data.HTML5 files all use <html lang="en">
and <meta charset="utf-8">
.
My problem is that everything works nicely – until an accented character is input into the initial form. Say ö, É or something like that – as happens with the occasional person’s name. Whilst such characters display properly in the HTML confirmation table, they become garbled in the email and the csv file – typically ö becomes ö.
I have searched through other similar questions and their answers, but find nothing that provides satisfactory answers – especially the part regarding the creation of a text file.
Any suggestions?