???(10/21 22:32) Page:1
Author : watanabe
Category: ??- programing- java
java?servlet??????????? setCharacterEncoding() POST???(Apache Tomcat,RFC??)
String#getBytes(String) ????V?? ??????????
?"ISO-8859-1″??????w
(respHttpServletResponse)
resp.setContentType("application/octet-stream");
resp.setHeader("Content-Disposition", "attachment; filename=" + new String(fname.getBytes("MS932"), "ISO-8859-1"));
?????IE6,Firefox 3.6.11,opera 10.63,safari for windows 4.0.5 SJIS
OK -> ie,firefox,safari
NG -> opera
UTF-8
OK -> ie,firefox
NG -> opera,safari
????? ?
resp.setContentType("application/octet-stream");
resp.setHeader("Content-Disposition", "attachment; filename*="Shift_JIS''" + URLEncoder.encode(fname, "MS932") + '"');

?

>
<


WP-Ktai ver 0.5.0