[問題] mail內容提交到outlook 變成亂碼 贈3000P

看板Web_Design作者 (小朋友)時間11年前 (2015/02/05 13:24), 11年前編輯推噓0(006)
留言6則, 2人參與, 最新討論串1/2 (看更多)
各位大大好,小弟初學者,遇到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://www.ptt.cc/bbs/Web_Design/M.1423113848.A.BC6.html ※ 編輯: noworneverev (111.246.16.1), 02/05/2015 13:39:38

02/05 16:59, , 1F
自己google找到要加 enctype="text/plain"
02/05 16:59, 1F

02/05 17:02, , 2F
可是跑出來變成亂碼 求高手幫幫忙QQ
02/05 17:02, 2F

02/05 17:02, , 3F

02/05 20:15, , 4F
有完整的code嗎
02/05 20:15, 4F

02/05 20:16, , 5F
不然在網頁的head裡面加入
02/05 20:16, 5F

02/05 20:17, , 6F
<meta charset="UTF-8">試試
02/05 20:17, 6F
有加了,爬文也有看到有人有跟我一模一樣的問題 可是沒有答案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
文章代碼(AID): #1Kqlvul6 (Web_Design)
文章代碼(AID): #1Kqlvul6 (Web_Design)