When Java exports CSV, it is required to wrap lines without formatting.
滿天的星座
滿天的星座 2017-05-17 10:08:06
0
2
540

The following data is output to a CSV cell: only line breaks in this cell

strKey = "\""+"w3444444444444445\n234444444444"+"\"";

而不是像图中换到了另一行

It won’t work if you change it to r or rn

滿天的星座
滿天的星座

reply all(2)
左手右手慢动作

Is this still in CSV format?

迷茫
FileWriter writer = new FileWriter(file);
writer.write("1,2,3,4\n\"5\nw\",6,7,8");
writer.close();

I tried it, and it’s ok if I write it like this. Just make sure that the content to be wrapped is enclosed in double quotes

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!