- Properties prop = new Properties();
- prop.setProperty("fileName", new String("测试文件".getBytes(),"ISO-8859-1"));
- fos = new FileOutputStream(new File(pathOutput + ".properties"));
- prop.store(fos,new String("文件信息".getBytes(),"ISO-8859-1"));
- #文件信息
- #Thu Jul 23 01:39:20 CST 2015
- partCount=3
- fileName=\u00B2\u00E2\u00CA\u00D4\u00CE\u00C4\u00BC\u00FE
复制代码 |
|