GithubHelp home page GithubHelp logo

Comments (4)

thkeen avatar thkeen commented on September 27, 2024

TEST: (
(
"TR\U1ea6N",
"species_code",
"Scientific name",
"Author name",
"Common name",
Family,
Description,
Habitat,
""Leaf size min (cm, 0 decimal digit)"",
""Leaf size max (cm, 0 decimal digit)"",
Distribution,
"Current National Conservation Status",
"Growth requirements",
"Horticultural features",
"U\U7300\U6500\U7300\U2c00\U4100\U7300\U7300\U6f00\U6300\U6900\U6100\U7400\U6500\U6400\U2000\U6600\U6100\U7500\U6e00\U6100\U2c00\U5200\U6500\U6600\U6500\U7200\U6500\U6e00\U6300\U6500\U2c00\U7300\U7000\U6500\U6300\U6900\U6500\U7300\U5f00\U6900\U6400"
)

from chcsvparser.

thkeen avatar thkeen commented on September 27, 2024

FYI: I had to save the string into a file then load from it using "arrayWithContentsOfCSVFile" then it worked fine. :)

Thanks.

from chcsvparser.

davedelong avatar davedelong commented on September 27, 2024

The issue is the use of [csv fastestEncoding] here: https://github.com/davedelong/CHCSVParser/blob/master/CHCSVParser/CHCSVParser.m#L78

That's the difference between reading a CSV string from disk and reading it from memory. Reading it from disk tries to discover the encoding and falls back to NSUTF8StringEncoding, while the -fastestEncoding method was returning NSUnicodeStringEncoding. I'm not sure what the difference between the two is, but changing the encoding for reading from a string to always be NSUTF8StringEncoding appears to fix the issue.

from chcsvparser.

thkeen avatar thkeen commented on September 27, 2024

Hmmmmm, so you mean I should use the method "initWithInputStream....", mimic the code in the other function to solve the issue for now right?

Thanks for your help!

from chcsvparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.