Steven 的 IT 學習旅程
網頁
首頁
Java Learning Resources
Learning Resources for Data Science
Learning English
參考資料
2010年4月10日 星期六
設定 tomcat 處理某個 request 所使用的 Charset
要設定 Tomcat 處理某個 request 時所使用的 Charset, 要使用 ServletRequest interface 中的方法:
void
setCharacterEncoding
(
String
env)
Overrides the name of the character encoding used in the body of this request.
例如,要處理 UTF8 的 request:
request.setCharacterEncoding("UTF-8");
Tomcat 所預設的 Charset 為: ISO-8859-1.
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
熱門文章
Netbeans IDE 的字型設定
magpi 設計線上表單, 利用行動裝置收集資料
解決 Markdown Preview Enhanced 產生的 HTML 文件中 side toc 不見的方法
將 JSF Composite Component 包裝成 jar 檔供其他 Web 專案使用
使用 Bootstrap 3 – A short and Quick Guide
沒有留言:
張貼留言