request.setCharacterEncoding("utf-8");response.setCharacterEncoding("utf-8");加个这个试试,不行再看看页面上的字符集对不对。
全局都换成GBK。你是用文件流写入还是字节?