TEXTBox 輸入某幾個中文字(ex.胜肽) 【送出】後 網頁會錯誤或亂碼 使用者輸入這種特殊字的機率又很大 網路上大家都說去改web.config 將語系改成UTF-8 我照做後,的確有改善了 但後來發現,其他網頁都會有問題 因為網站一開始設定是BIG5 可否針對特定網頁更改UTF-8呢 好苦喔
考慮哪個網頁需要設置字元,這樣設置:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
然後注意這樣編碼 (Page_Load事件中):
Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8"); Request.ContentEncoding = Encoding.GetEncoding("utf-8");
ASP.NET Forum Other Discussion Forums FreeRice Donate Issues to report Free Tech Books Search and Download
您好,
再麻煩至 https://social.technet.microsoft.com/Forums/zh-tw/home 發言唷~上面會有比較多人回覆您! thanks
請記得將對您有幫助的回覆"標示為解答"以幫助其他尋找解答及參與社群討論的朋友們。
Please remember to click Mark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.