Skip to content

Commit

Permalink
fixup! Doc / FAQ about encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jibidus committed Sep 13, 2017
1 parent 3aa813c commit 11a87f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ File.new 'path/to/file.csv', encoding: 'ISO-8859-1'
Ruby `File` can also handle internal and external encoding (see [File::new](https://ruby-doc.org/core-2.4.1/File.html#method-c-new) which can be useful to manage automatic conversion:

```ruby
File.new 'path/to/file.csv', external_encoding: 'UTF-8', internal_encoding: 'ISO-8859-1'
File.new 'path/to/file.csv', external_encoding: 'ISO-8859-1', internal_encoding: 'UTF-8'
# or
File.new 'path/to/file.csv', encoding: 'ISO-8859-1:UTF-8'
```

### Database client
Expand Down

0 comments on commit 11a87f3

Please sign in to comment.