app/models/blacklight/icon.rb in blacklight-7.0.0.rc1 vs app/models/blacklight/icon.rb in blacklight-7.0.0.rc2
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Blacklight
class Icon
attr_reader :icon_name
##
# @param [String, Symbol] icon_name
@@ -33,9 +35,10 @@
##
# @return [String]
def file_source
raise Blacklight::Exceptions::IconNotFound, "Could not find #{path}" if file.blank?
+
file.source.force_encoding('UTF-8')
end
private