0

Hi I am writing to CSV file like below

Writer  bw3 =  new BufferedWriter(
                new OutputStreamWriter(new FileOutputStream(outFileConversation),"UTF-8"));

But Still if i open CSV in textpad all cell with complete data will be there but in Excel some text contents are moved to next cell even next line if text content is big

So I replaced all special chars from text like \n,\t,\","," etc also I used UTF-8 but still why in excel text content not wrapping to single cell ?

Any problem in writing to CSV ? or Excel not able to read huge text content ?

2
  • Can you share a bit more of a code about how do you perform write operation? Commented Nov 2, 2016 at 4:41
  • You need to escape comma. Find this search google.co.in/… Commented Nov 2, 2016 at 4:44

1 Answer 1

1

Please be aware that when you have UTF-8 encoding, there are some additional steps that you should follow, as explained here

Sign up to request clarification or add additional context in comments.

1 Comment

I also found that String literal having 65535 length onward not able to print as size exceeds. So how to increase this length or how to break text without breaking the line display?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.