diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-19 12:17:32 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-19 12:17:32 +0100 |
commit | d9b834cd7e98c95c752fccb57ca02c71e4adba1c (patch) | |
tree | b94b2d2555fd22db3c37b9c078901cc01710672f | |
parent | 4af74c9b5dd0e43bb20b9bdaefa5cda65c9fe4d1 (diff) |
Add charset to view-as-html template
-rw-r--r-- | lib/attachment_to_html/template.html.erb | 1 | ||||
-rw-r--r-- | spec/lib/attachment_to_html/view_spec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/attachment_to_html/template.html.erb b/lib/attachment_to_html/template.html.erb index 38286a5f9..b898b1750 100644 --- a/lib/attachment_to_html/template.html.erb +++ b/lib/attachment_to_html/template.html.erb @@ -1,6 +1,7 @@ <!DOCTYPE html> <html> <head> + <meta charset="UTF-8"> <title><%= title %></title> <%= content_for(:head_suffix) %> </head> diff --git a/spec/lib/attachment_to_html/view_spec.rb b/spec/lib/attachment_to_html/view_spec.rb index 65eff4cad..50179b0f7 100644 --- a/spec/lib/attachment_to_html/view_spec.rb +++ b/spec/lib/attachment_to_html/view_spec.rb @@ -119,6 +119,7 @@ describe AttachmentToHTML::View do <!DOCTYPE html> <html> <head> + <meta charset="UTF-8"> <title>An attachment.txt</title> </head> <body> |