Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:10:07+00:00 2026-06-15T22:10:07+00:00

I have to output some content as CSV file which will be sometimes opened

  • 0

I have to output some content as CSV file which will be sometimes opened using
applications like ms-excel but other application will also open the same csv.
Now, these are some problem faced if I open the csv file using ms-excel (although excel is
not a proper application to view CSV)-

  1. If one particular cell has a new line, the csv breaks the record there after as a new row.
  2. If we add characters such as double quote or comma, it again considers it as another column.

The format of csv is –

"header1", "header2", "header3"
"column1", "column2", "column3"
....
"columnN", "columnN", "columnN"

My problem is, I want to add characters like {" ' , | new line(0x09/0x0a etc)} etc in the columns, without breaking data integrity. I am using java to build the csv content. Can any one provide any solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:10:09+00:00Added an answer on June 15, 2026 at 10:10 pm

    I suggest to take a look at openscv library http://cs.swansea.ac.uk/~csbob/teaching/java/JavaDemoNetbeans/opencsv-2.3/doc/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery function loading a php file which will output some data
I have a python script which should parse a file and produce some output
Often when writing PHP I'll have it output some HTML like this - echo
I have the following output (via link) which displays the var_dump of some XML
I'm creating a program in VB.NET to output multiple images. Some images will have
I have some content files that I would like to share between a number
How to repeat output of some content in JSF using only standard tags (ui:,
I have a function that replaces my shortcode with some content e.g. function output()
I have a PHP script which I want to output some text which I'm
I'm creating a bash script to generate some output from a CSV file (I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.