Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README comment on use with Microsoft Excel #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

algal
Copy link

@algal algal commented Feb 24, 2014

This is a short addition to the README which shows how to use CHCSVParser to read data exported from Microsoft Excel, with correct handling of text encoding issues.

I think this is worth mentioning since it's a common use case, and the obvious thing to do (use Excel's Save As ".csv") produces subtle problems with text encodings.

@davedelong davedelong added the Low label Jul 12, 2014

###Usage with Microsoft Excel

Another comman usage scenario for CSV data is when you want to import tabular data that was exported from Microsoft Excel. If you are on a Mac, you may well be exporting the data from Microsoft Excel 2011 for Mac, which lets you choose the export file format from the File / Save As option. However, if you have any extended characters then "Comma Separated Values" or even "Windows Comma Separated" can be a hazardous choice, because neither will use a unicode-aware text encoding. You're safest choice is to save as a "UTF-16 Unicode Text", which is in fact a tab-separated values file, with escaped quotation marks, and certain fields surrounded in double quotes. With `CHCSVParser`, you can read such a file into an array of arrays as follows:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commAn. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants