Formatting a CSV File that contains HTML for Import to Excel -


I import a CSV file from my application to import Excel (or any other spreadsheet that supports CSV files) Would like to export Either way, one of the cells present in my table contains rich content (i.e. HTML) which can, of course, include a comma as well as other HTML characters and formatting. I have realized that Excel can handle "HTML formatted text", but to export it as a CSV it has to screw the data, is there any special way that I can format that particular cell so that Are you importing properly?

provided you double quote (or some other delimiter, but double quotes are the most common) in all your fields , Then the comma should not present a problem in field data.

If your data is also included in double quotes, if double quote fields are present in the value, then they will run away by putting another double quote ahead of it.

The Wikipedia page is readable on CSV files, because it explains problems, and solutions, very well:


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -