Commit 8993e97a authored by Mateus Rambo Strey's avatar Mateus Rambo Strey

remove file content force encoding

parent 3cd4b476
...@@ -3,8 +3,8 @@ module Dspace ...@@ -3,8 +3,8 @@ module Dspace
module TempfileBuilder module TempfileBuilder
def, contents = nil) def, contents = nil)
file =[sanitize_filename(filename), File.extname(filename)]).tap do |f| file =[sanitize_filename(filename), File.extname(filename)], encoding: 'ascii-8bit').tap do |f|
f.write contents.force_encoding("UTF-8") f.write contents
f.close f.close
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment