Java read and write csv file(注意事项)
2013-07-21 15:49
591 查看
(1)read csv 文件
1.1以指定的编码去读取,否则会造成某些特殊字符乱码的情况
1.2注意UTF-8格式的CSV文件头部有一个bom信息,记得去除掉
1.3注意CSV文件的空行
(2)write csv file
2.1一字节流的形式先输入bom头信息(out.write(new byte[] { (byte) 0xEF, (byte) 0xBB,(byte) 0xBF });
1.1以指定的编码去读取,否则会造成某些特殊字符乱码的情况
1.2注意UTF-8格式的CSV文件头部有一个bom信息,记得去除掉
1.3注意CSV文件的空行
(2)write csv file
2.1一字节流的形式先输入bom头信息(out.write(new byte[] { (byte) 0xEF, (byte) 0xBB,(byte) 0xBF });
相关文章推荐
- 对于java中的readUTF和writeUTF的注意事项
- How to read and parse CSV file in Java
- file read and write use java
- Java CSV读--Read And Parse CSV File In Java
- python.pandas read and write CSV file
- java file read and write code(io包的使用)
- python.pandas read and write CSV file
- Qt Read and Write Csv File
- How to mount partition with ntfs file system and read write access
- Qt Write and Read XML File 读写XML文件
- How to read and write JSON files in Java(Gson)
- Example : Linux kernal file read and write
- read and write excel file as a table
- How to use java Properties API -- read and write
- Read and Write a /proc File
- Create, Read, Write, Copy, Move and Delete a Text File using C#
- How to Read, Write XLSX File in Java - Apach POI Example---reference
- Read and write excel file with format by pandas and xlwt libraries of python
- [Training Video - 6] [File Reading] [Java] Create and Write Excel File Using Apache POI API
- 关于开发中使用writeToFile时的注意事项