Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2014 15:16
Show Gist options
  • Save anonymous/fe21d529e3f38cceef87 to your computer and use it in GitHub Desktop.
Save anonymous/fe21d529e3f38cceef87 to your computer and use it in GitHub Desktop.
CSV.foreach(file.path, col_sep: ';', headers: true) do |row|
contactrow = row.to_hash
logger.debug row.to_hash.keys.first.encoding
logger.debug "name".encoding
if row.to_hash.keys.first == "name"
logger.debug "hallo!@#"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment