Merge pull request #1430 from Ducz0r/lm-sci-2902-fix-3

Add force_encoding to export all report view template [SCI-2902]
This commit is contained in:
Luka Murn 2018-12-18 22:29:27 +01:00 committed by GitHub
commit 2a7eda5db7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,19 @@
<head>
<meta charset="utf-8">
<style type="text/css">
<%= Rails.application.assets_manifest.find_sources('application.css').first.to_s.html_safe %>
<%= Rails.application
.assets_manifest
.find_sources('application.css')
.first
.to_s
.force_encoding(Encoding::UTF_8)
.html_safe %>
</style>
<title><%= title %></title>
</head>
<body class='print-report-body'>
<div class='print-report'>
<%= content.html_safe %>
<%= content.force_encoding(Encoding::UTF_8).html_safe %>
</div>
</body>
</html>