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
module TempfileBuilder
def, contents = nil)
file =[sanitize_filename(filename), File.extname(filename)]).tap do |f|
f.write contents.force_encoding("UTF-8")
file =[sanitize_filename(filename), File.extname(filename)], encoding: 'ascii-8bit').tap do |f|
f.write contents
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