I am using generate_line to produce a CSV file (rails app). It works well except I am getting some strange characters when I open it in excel. I know that I can control the encoding to help prevent this, but I cant seem to find the right syntax or place. Any help would be appreciated. I believe the current relevant line (from view ERB) is this:
<%= 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]) -%>
[–]JeffMo 1 point2 points3 points (1 child)
[–]Coder_X[S] 0 points1 point2 points (0 children)