Skip to content

Commit a03c665

Browse files
committed
[BUGFIX] Fix encoding parameter for CSV generation
1 parent 8437245 commit a03c665

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
@@ -162,7 +162,7 @@ def to_param
162162

163163
def to_csv
164164
out = "";
165-
FCSV.generate(out, :encoding => 'u', :force_quotes => true) do |csv|
165+
FCSV.generate(out, :encoding => 'utf-8', :force_quotes => true) do |csv|
166166
csv << csv_header
167167

168168
# Write the CSV based on the group/sort

0 commit comments

Comments
 (0)