module Paperclip::TempfileEncoding
def binmode
for binary mode is ASCII-8BIT. This behavior is what's in CRuby, but not
This overrides Tempfile#binmode to make sure that the extenal encoding
def binmode set_encoding('ASCII-8BIT') super end
def binmode set_encoding('ASCII-8BIT') super end