Form submit mailto

2020-05-06 10:43发布

问题:

i have a little problem, i have developing html, css, javascript application for iphone and i have a form that submitting mails like:

<form action="mailto:some email" method="post" enctype="text/plain">
name:
phone:
email:
comments:
</form>

and when i click send, iphone email application opening with all the details, but all the details converting to gibberish (all the text is in hebrew). how can i manage the details remain in hebrew and not converting to gibberish in the iphone email app?

回答1:

mailto: URIs in forms are too unreliable to use on the WWW. Use an HTTP URL instead and send the email from your server.



回答2:

Use a UTF-8 encoding type in your form declaration:

enctype="multipart/form-data;charset=UTF-8"