getCharacterEncoding()
<% String encode = response.getCharacterEncoding(); out.println("響應用戶端的編碼格式為:"+encode); %>