{"action":"created","issue":{"url":"https://api.github.com/repos/goodby/csv/issues/35","repository_url":"https://api.github.com/repos/goodby/csv","labels_url":"https://api.github.com/repos/goodby/csv/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/goodby/csv/issues/35/comments","events_url":"https://api.github.com/repos/goodby/csv/issues/35/events","html_url":"https://github.com/goodby/csv/issues/35","id":30287434,"number":35,"title":"Import file without enclosure character","user":{"login":"BillyTom","id":953688,"avatar_url":"https://avatars.githubusercontent.com/u/953688?v=3","gravatar_id":"","url":"https://api.github.com/users/BillyTom","html_url":"https://github.com/BillyTom","followers_url":"https://api.github.com/users/BillyTom/followers","following_url":"https://api.github.com/users/BillyTom/following{/other_user}","gists_url":"https://api.github.com/users/BillyTom/gists{/gist_id}","starred_url":"https://api.github.com/users/BillyTom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillyTom/subscriptions","organizations_url":"https://api.github.com/users/BillyTom/orgs","repos_url":"https://api.github.com/users/BillyTom/repos","events_url":"https://api.github.com/users/BillyTom/events{/privacy}","received_events_url":"https://api.github.com/users/BillyTom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-27T10:13:14Z","updated_at":"2016-05-05T20:23:19Z","closed_at":null,"body":"I would like to import a text-file that uses only delimiter characters and no enclosure characters, like: `value1;value2;value3` etc. \r\n\r\nIf I try to set the enclosure character to an emtpy string, false or null I get the following error:\r\n\r\n    \"Warning: SplFileObject::setCsvControl(): enclosure must be a character in project/vendor/goodby/csv/src/Goodby/CSV/Impor\\/Standard\\/Lexer.php line 51 \r\n\r\nIn order to make it work I've changed the the SplFileObject that is beeing used in the Lexer.php, namely `$csv->setCsvControl($delimiter, $enclosure, $escape);`\r\n\r\nThe PHP-documentation `SplFileObject::setCsvControl` lists three optional parameters: $delimiter, $enclosure and $escape www.php.net/manual/en/splfileobject.setcsvcontrol.php\r\n\r\nThe only way I have managed to parse a file without enclosures was to change `$csv->setCsvControl($delimiter, $enclosure, $escape);` to `$csv->setCsvControl($delimiter);`. This worked for me since I did not use the escape character anyway, but I was wondering if there was a better way to accomplish this."},"comment":{"url":"https://api.github.com/repos/goodby/csv/issues/comments/217267341","html_url":"https://github.com/goodby/csv/issues/35#issuecomment-217267341","issue_url":"https://api.github.com/repos/goodby/csv/issues/35","id":217267341,"user":{"login":"gooddaytoday","id":1484395,"avatar_url":"https://avatars.githubusercontent.com/u/1484395?v=3","gravatar_id":"","url":"https://api.github.com/users/gooddaytoday","html_url":"https://github.com/gooddaytoday","followers_url":"https://api.github.com/users/gooddaytoday/followers","following_url":"https://api.github.com/users/gooddaytoday/following{/other_user}","gists_url":"https://api.github.com/users/gooddaytoday/gists{/gist_id}","starred_url":"https://api.github.com/users/gooddaytoday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gooddaytoday/subscriptions","organizations_url":"https://api.github.com/users/gooddaytoday/orgs","repos_url":"https://api.github.com/users/gooddaytoday/repos","events_url":"https://api.github.com/users/gooddaytoday/events{/privacy}","received_events_url":"https://api.github.com/users/gooddaytoday/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T20:23:19Z","updated_at":"2016-05-05T20:23:19Z","body":"PHP 5.3, I have similar error"}}