php - Spanish Accent Marks in Form Submission -
i have form spanish can submitted , using php, send email data. unfortunately, accent marks totally screwed when emailed.
if submit following:
testing accent marks á é í ó ú ñ
i end following in body of email...
testing accent marks á é à ó ú ñ
the code processing email placing $_post info directly body of email. assume need have htmlentities() or have tried , nothing works...
i need placing same data mysql database , retrieving later. need aware of when that?
thanks! drew
you have touched fine subject of charsets. try create , convert utf-8. database, files, forms , like. information on internet header use in e-mail make utf-8. convert e-mails standard 7-bit 8-bit these headers.
"content-type: text/plain; charset=utf-8" "content-transfer-encoding: 8bit"
for database need set, in case of mysql, collation.
Comments
Post a Comment