Skip to content

Commit 10bf311

Browse files
committed
[BUGFIX] Fix encoding parameter for CSV generation
1 parent 478bb0a commit 10bf311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/timesheet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def to_param
149149

150150
def to_csv
151151
out = "";
152-
CSV.generate(out, :encoding => 'u', :force_quotes => true) do |csv|
152+
CSV.generate(out, :encoding => 'utf-8', :force_quotes => true) do |csv|
153153
csv << csv_header
154154

155155
# Write the CSV based on the group/sort

0 commit comments

Comments
 (0)