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

Dialect weirdness #2

Open
joshribakoff opened this issue May 18, 2013 · 0 comments
Open

Dialect weirdness #2

joshribakoff opened this issue May 18, 2013 · 0 comments

Comments

@joshribakoff
Copy link
Owner

I created a file with this php code/string:

$csv = "sku,name\n";
$csv.= "123,name";

Then I open it with the reader:

new Csv_Reader($path);

I get, "Csv_Exception_CannotDetermineDialect: You must provide at least ten lines in your sample data".

Simply passing a Csv_Dialiect with no custom options bypasses that error and imports my CSV data fine:

new Csv_Reader($path,new Csv_Dialect);

The "auto dialect" feature should be smart enough to handle this without an exception!

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

No branches or pull requests

1 participant