diff --git a/lib/exception_notifier/views/exception_notifier/background_exception_notification.html.erb b/lib/exception_notifier/views/exception_notifier/background_exception_notification.html.erb index be98f5f0..588b7f9d 100644 --- a/lib/exception_notifier/views/exception_notifier/background_exception_notification.html.erb +++ b/lib/exception_notifier/views/exception_notifier/background_exception_notification.html.erb @@ -18,7 +18,6 @@ "#{title}\n\n#{summary.gsub(/^/, " ")}\n\n" end end.join - sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding) %> <%= raw sections %> diff --git a/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb b/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb index 6677bc65..03688152 100644 --- a/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb +++ b/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb @@ -10,6 +10,5 @@ "#{title}\n\n#{summary.gsub(/^/, " ")}\n\n" end end.join - sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding) %> <%= raw sections %> diff --git a/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb b/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb index 3a1499df..40549a47 100644 --- a/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb +++ b/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb @@ -27,7 +27,6 @@ [title, summary.gsub(/^/, " "), nil].join("\n\n") end end.join - sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding) %> <%= raw sections %> diff --git a/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb b/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb index 065bbea3..cc8d4dc6 100644 --- a/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb +++ b/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb @@ -19,7 +19,6 @@ [title, summary.gsub(/^/, " "), nil].join("\n\n") end end.join - sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding) %> <%= raw sections %>