@import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
這個問題是因為outputstream輸出中文字造成的.換成Writer就好了。outputstream是以字節為單位輸出字符串的,需要符合那個ISO 8859-1編碼
response.setContentType("text/html;charset=UTF-8");
//response.getOutputStream().print("中文字"); //這行會出錯
response.getWriter().print("中文字"); //換成這個就好了
response.getWriter().close();
posted on 2011-12-21 15:26
Ke 閱讀(1295)
評論(0) 編輯 收藏 所屬分類:
exception