Ajax開發過程中提交獲取數據的亂碼問題
解決AJAX的亂碼,可以用 escape()函數的呀。
escape 方法不能夠用來對統一資源標示碼 (URI) 進行編碼。對其編碼應使用 encodeURI 和encodeURIComponent 方法。
在asp中解決亂碼問題只需要在服務器端加上<%Response.ContentType = "text/html;charset=GB2312"%>
posted on 2009-04-25 22:49
黃小二 閱讀(201)
評論(0) 編輯 收藏 所屬分類:
Ajax