Skip to content

Commit

Permalink
Switch to UTF-8 as default CSV encoding (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilvk authored Jan 21, 2018
1 parent c2d67a2 commit affc641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/slacker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def sql_from_query_string(query_string, options = {})
def get_csv(csv_file_path)
CSV.read(configuration.expand_path("data/#{csv_file_path}"), {
:headers => true,
:encoding => 'Windows-1252',
:encoding => 'UTF-8',
:header_converters => lambda { |h| h.to_sym unless h.nil? }
})

Expand Down
2 changes: 1 addition & 1 deletion lib/slacker/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Slacker
VERSION = "1.0.20"
VERSION = "1.0.21"
end

0 comments on commit affc641

Please sign in to comment.