module Patron::ResponseDecoding
def internal_encoding
def internal_encoding # Use a trick here - instead of using `default_internal` we will create # an empty string, and then get it's encoding instead. For example, this holds # true on 2.1+ on OSX: # # Encoding.default_internal #=> nil # ''.encoding #=> #<Encoding:UTF-8> Encoding.default_internal || ''.encoding end