# File lib/mail/version_specific/ruby_1_9.rb, line 65 def Ruby19.q_value_decode(str) match = str.match(/\=\?(.+)?\?[Qq]\?(.+)?\?\=/m) if match encoding = match[1] str = Encodings::QuotedPrintable.decode(match[2]) str.force_encoding(fix_encoding(encoding)) end str.encode("utf-8", :invalid => :replace, :replace => "") end