struts2解決中文亂碼。解決http的post和get請求亂碼問題

解決http的post請求亂碼問題 首先在struts.xml中增加如下項: <constant name=" struts.locale" value="UTF-8"></constant> 解決http的get請求亂碼問題 打開你的tomcat安裝目錄在裏面找conf/ server.xml,用編輯器打開這個文件,在裏面增加如下項: URIEncoding="UTF-8"
相關文章
相關標籤/搜索