Skip to content

Commit

Permalink
Use UTF8 encoding for Endnote files
Browse files Browse the repository at this point in the history
  • Loading branch information
awead committed Sep 15, 2016
1 parent ee24ce3 commit 9bfae02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -63,7 +63,7 @@ def after_create_response
def additional_response_formats(format)
format.endnote do
send_data(presenter.solr_document.export_as_endnote,
type: "application/x-endnote-refer",
type: "application/x-endnote-refer; charset=utf-8",
filename: presenter.solr_document.endnote_filename)
end
end
Expand Down
Expand Up @@ -72,7 +72,7 @@
get :show, params: { id: work, format: 'endnote' }
expect(response).to be_successful
expect(disposition).to include("attachment")
expect(content_type).to eq("application/x-endnote-refer")
expect(content_type).to eq("application/x-endnote-refer; charset=utf-8")
expect(response.body).to include("%T test title")
end
end
Expand Down

0 comments on commit 9bfae02

Please sign in to comment.