Skip to content

Commit 112959d

Browse files
authored
Merge pull request #78 from Intera/feature/csv-bugfix
[BUGFIX] Fix encoding parameter for CSV generation
2 parents 8437245 + a03c665 commit 112959d

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)