作者noworneverev (小朋友)
看板Web_Design
标题[问题] mail内容提交到outlook 自动变成unicode(已解决
时间Thu Feb 5 13:24:03 2015
各位大大好,小弟初学者,遇到mailform有一点问题
<form method="post" action="MAILTO:xxx">
<div ><input type="text" name="name" placeholder="Name" /></div>
<div><input type="text" name="email" placeholder="Email" /></div>
<textarea name="message" placeholder="Message" ></textarea>
<div><input type="submit" value="Send Message" /></div>
</form>
用上述产出的表格 填入中文时,跑到outlook的时候会自动变成unicode的编码
而不是输入的中文字,想请问要如何才能解决?
谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.246.16.1
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Web_Design/M.1423113848.A.BC6.html
※ 编辑: noworneverev (111.246.16.1), 02/05/2015 13:39:38
1F:→ noworneverev: 自己google找到要加 enctype="text/plain" 02/05 16:59
2F:→ noworneverev: 可是跑出来变成乱码 求高手帮帮忙QQ 02/05 17:02
4F:→ oToToT: 有完整的code吗 02/05 20:15
5F:→ oToToT: 不然在网页的head里面加入 02/05 20:16
6F:→ oToToT: <meta charset="UTF-8">试试 02/05 20:17
有加了,爬文也有看到有人有跟我一模一样的问题
可是没有答案QQ
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form method="post" enctype="text/plain" action="MAILTO:xxx">
<div ><input type="text" name="name" placeholder="Name" /></div>
<div><input type="text" name="email" placeholder="Email" /></div>
<textarea name="message" placeholder="Message" ></textarea>
<div><input type="submit" value="Send Message" /></div>
</form>
</body>
</html>
※ 编辑: noworneverev (111.246.16.1), 02/05/2015 22:44:29
※ 编辑: noworneverev (111.246.16.1), 02/05/2015 22:51:49
※ 编辑: noworneverev (111.246.16.1), 02/05/2015 23:50:24