Skip to content

Commit

Permalink
Add note for macos encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ppetrov committed Sep 8, 2017
1 parent 18e116f commit 1dcf1f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $rows = $csv->to_array();

This will parse the file and assign the result to the `$rows` variable.

### Output
Output:

```
Array
Expand All @@ -59,6 +59,14 @@ Array
```

**MacOS encoding**

When working with files created on a Mac device, it's advised to set the `auto_detect_line_endings` PHP variable to `1`.

```
ini_set( 'auto_detect_line_endings', 1 );
```

### Settings

To change the delimiter, enclosure and escape characters for the CSV file, simply pass them as arguments after the file path.
Expand Down

0 comments on commit 1dcf1f4

Please sign in to comment.