We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(Fill in the relevant information below to help triage your issue.)
Forcing enclosures will not remove the "magic character"
Using the example leads to a CSV that still contains the control characters
$records = [ ['Year', 'Make', 'Model', 'Description', 'Price'], [1997, 'Ford', 'E350', 'ac,abs,moon', '3000.00'], [1999, 'Chevy', 'Venture "Extended Edition"', null, '4900.00'], [1999, 'Chevy', 'Venture "Extended Edition, Very Large"', null, '5000.00'], [1996, 'Jeep', 'Grand Cherokee', 'MUST SELL! air, moon roof, loaded', '4799.00'], ]; $writer = Writer::createFromPath(__DIR__.'/../storage/app/test.csv', 'w+'); $writer->setDelimiter('|'); EncloseField::addTo($writer, "\t\x1f"); $writer->insertAll($records);
"Year"|"Make"|"Model"|"Description"|"Price" "1997"|"Ford"|"E350"|"ac,abs,moon"|"3000.00" "1999"|"Chevy"|"Venture ""Extended Edition"""|""|"4900.00" "1999"|"Chevy"|"Venture ""Extended Edition, Very Large"""|""|"5000.00" "1996"|"Jeep"|"Grand Cherokee"|"MUST SELL!
" �Year"|" �Make"|" �Model"|" �Description"|" �Price" " �1997"|" �Ford"|" �E350"|" �ac,abs,moon"|" �3000.00" " �1999"|" �Chevy"|" �Venture ""Extended Edition"""|" �"|" �4900.00" " �1999"|" �Chevy"|" �Venture ""Extended Edition, Very Large"""|" �"|" �5000.00" " �1996"|" �Jeep"|" �Grand Cherokee"|" �MUST SELL! air, moon roof, loaded"|" �4799.00"
The text was updated successfully, but these errors were encountered:
fixed by #421
Sorry, something went wrong.
Any plans when to release this fix?
@patriziotomato should be released next week.
Thanks so much
9.7.1 has been released
nyamsprod
No branches or pull requests
Bug Report
(Fill in the relevant information below to help triage your issue.)
Summary
Forcing enclosures will not remove the "magic character"
Standalone code, or other way to reproduce the problem
Using the example leads to a CSV that still contains the control characters
Expected result
Actual result
Checks before submitting
The text was updated successfully, but these errors were encountered: