1)最近做上傳文件時遇到了討厭的亂碼問題!
現象是上傳純文本文件,顯示沒有問題,但是word文檔中有圖表就會出現亂碼!
原因,是由于我用了clob字段來保存文檔!
2)在下載時遇到中文文件名亂碼.解決方法是把文件名重新編碼!
?response.setHeader("Content-disposition", "attachment;filename=\"" +new String(bszn.getFileFileName().getBytes("gb2312"),"iso8859-1")+"\"");
mysql?的blob字段只有64k,要有大點的文件要用longBlob
??????????????????
posted on 2007-01-30 23:12
sunny 閱讀(210)
評論(0) 編輯 收藏