need to create csv file with this text in it :
<p><span style="color: #000000;"><strong>TEXT: </strong></span>another TEXT</strong></span>
This is my code :
PrintWriter testFile = new PrintWriter("C:\\JAVA\\test01.csv", "UTF-8");
String test = "<p><span style=\"color: #000000;\"><strong>Dostupnosť: </strong></span>do 2 -14 dní</strong></span>";
testFile.print("zero;one;"+test);
testFile.close();
It creates the file, but I can't for some reason open it in Excel, when I open it, it only gives me blank file, with no text in it. And the main problem is, the ";" in the middle of the text. It works as cell separator and separates the text in another cell, but I need it to remain in one cell.
When I create the file direct in excel, it works fine. It even ignores the ";" and text remains in one cell. Answer so far was, that it might be because of wrong encoding, and it should be UTF-8, but that should be OK.