调用EXCEL文件(含中文名)问题,求教!(急) 能具体点吗<------ 仁者见仁,智者见智------> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); String name = (String) session.getAttribute("mainname"); String yh = Encode.iso2GBK(request.getParameter("yh")); ActionForward af = new ActionForward(); System.out.println("======path======="+createExcel(name,yh)); af.setPath("/excel/"+createExcel(name,yh)); 打印出的结果:/excel/adminshow1_yh_20031201(银行).xls return af; } "/excel/"+createExcel(name,yh)把这个转个码试试 String yh = Encode.iso2GBK(request.getParameter("yh"));你对它进行了encode,那读的时候有没有将它decode? 关于Java子类构造函数的重载 java解析xml的问题 求用'jsp+javabean+servlet+sql'编写的'新闻信息发布系统'源码!! 跪求 远程获取其他主机的CPU利用率等系统信息 的方法! JAVA中取mssql中的ntext时出错 小女子求助,combobox如何解决write lock的问题?? 是不是一定要定义数组的长度才能使用? jar文件为什么不能执行,急!解决了立刻给分 高手看过来,关于Linux下面jdk的编译问题 关于jdbc中date类型的处理 初学者问题:怎么可以摆脱static? 在java中如何产生两个数之间的随机数?
throws Exception { HttpSession session = request.getSession();
String name = (String) session.getAttribute("mainname");
String yh = Encode.iso2GBK(request.getParameter("yh")); ActionForward af = new ActionForward(); System.out.println("======path======="+createExcel(name,yh)); af.setPath("/excel/"+createExcel(name,yh));
打印出的结果:/excel/adminshow1_yh_20031201(银行).xls
return af; }
把这个转个码试试
String yh = Encode.iso2GBK(request.getParameter("yh"));
你对它进行了encode,那读的时候有没有将它decode?