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

How are you handling quotes and commas? #6

Closed
elijah-rappaport opened this issue Dec 18, 2017 · 12 comments
Closed

How are you handling quotes and commas? #6

elijah-rappaport opened this issue Dec 18, 2017 · 12 comments

Comments

@elijah-rappaport
Copy link

elijah-rappaport commented Dec 18, 2017

exportCSV:
Quotes in values are written as they are, which causes problems when opening up in Excel.
Ideally, any " found in values should be turned into "".

readCSV:
Any row with a value that contains a comma seems to be ignored.
(But values with commas do get written fine by exportCSV.)

@vigneshuvi
Copy link
Owner

Hi Harris,

Can you please test it with my example? It is working fine.

Example file: ViewController.swift

@elijah-rappaport
Copy link
Author

elijah-rappaport commented Dec 18, 2017 via email

@elijah-rappaport
Copy link
Author

elijah-rappaport commented Dec 18, 2017 via email

@vigneshuvi
Copy link
Owner

vigneshuvi commented Dec 18, 2017

@harrisrap , Can you please update your pod?

pod update

@elijah-rappaport
Copy link
Author

elijah-rappaport commented Dec 18, 2017 via email

@vigneshuvi
Copy link
Owner

vigneshuvi commented Dec 18, 2017

@harrisrap , Can you please let me know what is your local version of "SwiftCSVExport"?

You can find the local version in pod.lock file and open lock file in text editor!

Exmaple:

PODS:

  • SwiftCSVExport (1.0.6)
  • SwiftLoggly (1.0.5)

@elijah-rappaport
Copy link
Author

elijah-rappaport commented Dec 18, 2017 via email

@vigneshuvi
Copy link
Owner

Can you please use pod update to install latest version?

@vigneshuvi
Copy link
Owner

Can you please provide sample code to reproduce this issue?

@elijah-rappaport
Copy link
Author

elijah-rappaport commented Dec 18, 2017 via email

@vigneshuvi
Copy link
Owner

Hi @harrisrap

Will check pod install issue.

for dictionary format read:

        let fileDetails = readCSV(filePath);
        if fileDetails.allKeys.count > 0 {
            loggly(LogType.Info, dictionary: fileDetails)
        }

@jeanraymonddaher
Copy link

for me trying to read a csv i download from excel wont work when there are commas that are inside the string
"All big things come from small beginnings. The seed of every habit is a single, tiny decision.",James Clear,https://jamesclear.com/

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

No branches or pull requests

3 participants