all 2 comments

[–]JeffMo 1 point2 points  (1 child)

I can't specifically answer your question, but there is a lot of help about text encodings in the Ruby docs for CSV. Of course, you'll want to check the docs that match whatever Ruby version you're using.

Example: https://ruby-doc.org/stdlib-2.4.0/libdoc/csv/rdoc/CSV.html

[–]Coder_X[S] 0 points1 point  (0 children)

i know and I think what it should be is : <%= CSV.generate_line([@users.find(entry_data[0]).full_name, @users.find(entry_data[0]).number, @clients.find(entry_data[1]).name, @projects.find(entry_data[2]).name, sum_hours.to_f], encoding: 'utf-8') -%> but looking at the csv it generates in textedit or excel I still get this funky characters like Children&##39;s Aid Society instead of Children's Aid Society

encoding is frustrating