
java
zhlfz
这个作者很懒,什么都没留下…
展开
-
Poi Unable to read entire header; 0 bytes read; expected 512 bytes
Java 使用POI 读取 excel文件,错误:Unable to read entire header; 0 bytes read; expected 512 bytes原因可能:FileInputStream 使用了两次,第二次就会报这个错2013-10-16 12:49:36 · 1894 阅读 · 1 评论 -
Struts2 使用JSON返回JSON串带反斜杠的问题“\”
最近在使用datatable,Struts2返回的JSON Datatable总是不能解析,通过Firebug看到返回Json的都带有反斜杠如下: {\"Result\":\"OK\",\"Records\":[{\"PersonId\":1,\"Name\":\"Benjamin Button\",\"Age\":17,\"RecordDate\2013-10-20 15:08:21 · 775 阅读 · 1 评论 -
utf-8非法字符65279
最近在做敏感词过滤的时候,用记事本保存敏感词,但是在读取记事本的时候,发现第一行的词总是识别不了经过debug发现在记事本保存utf8的时候自动加个了"空白"字符,经排查字符的ascii = 65279 google后发现原来记事本在保存utf8时自动在开头加上BOM,使用notepad ++的“以UTF-8无BOM格式编码”保存即可 ...原创 2015-07-22 18:47:03 · 392 阅读 · 0 评论