???ƒ²(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