Web.config 相關
最近在處理公司的一個專案時使用了ajax.beginform
結果記錄到資料庫中的字串,居然都很神奇地變成了亂碼了
接著我就開始了一連串的檢查...
最後是發現原來當初為了舊版本的程式,所以在config有設定編碼是big5
接著既然找到元凶後...我就開始著手修改
加入下面這串後...搞定收工!!
<location path="Areafolder/Controller">
<system.web>
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
</system.web>
</location>
We all change, when you think about it, we're all different people; all through our lives, and that's okay, that's good, you've gotta keep moving, so long as you remember all the people that you used to be. I will not forget one line of this, not one day, I swear.