Form submit mailto

孤者浪人 提交于 2019-12-02 17:28:37

问题


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"


来源:https://stackoverflow.com/questions/18127826/form-submit-mailto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!