http://www.w3schools.com/htmL/tryit.asp?filename=tryhtml_form_mail
<!DOCTYPE html>
<html>
<body>
<h2>Send e-mail to someone@example.com:</h2>
<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name" value="your name"><br>
E-mail:<br>
<input type="text" name="mail" value="your email"><br>
Comment:<br>
<input type="text" name="comment" value="your comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
表单如上,输入中文后呈现乱码(无论是请求里看还是邮件客户端里看)。添加accept-charset="UTF-8"
也是乱码,文档说默认charset和html一样,感觉不是charset有问题。请问如何解决,谢谢!
单对form表单提交来讲,因为这样的请求会被FOXMAIL转换为gbk编码.所以会出现这样的情况。
可以参考以下链接进行修改
参考:http://www.xuebuyuan.com/1906780.html
http://www.webpage.idv.tw/maillist/maillist4/new/06/mailto.htm