Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment