Topic: java中中文乱码的问题

  Print this page

1.java中中文乱码的问题 Copy to clipboard
Posted by: bukaoyan
Posted on: 2005-12-20 20:24

我在java中解压缩.zip文档时总是报错。中文显示乱码!
请教有什么好解决方法!

2.Re:java中中文乱码的问题 [Re: bukaoyan] Copy to clipboard
Posted by: bukaoyan
Posted on: 2005-12-21 00:25

错误为
There was 1 error:
1) testReadZip(com.wuyanfeng.TestZipOp)java.io.IOException: Stream closed
  at java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
  at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
  at com.wuyanfeng.TestZipOp.testReadZip(TestZipOp.java:102)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at com.wuyanfeng.TestZipOp.main(TestZipOp.java:33)
但是解压没有包含中文的压缩文件没问题!

3.Re:java中中文乱码的问题 [Re: bukaoyan] Copy to clipboard
Posted by: athlon
Posted on: 2006-01-18 22:27

最好调用apache的zip能解决中文问题;

ant.jar (929.79k)


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923