Displaying 1 result from an estimated 1 matches for "decode_quoted_printable".
2006 Aug 04
1
[Info] TMail included in ActionMailer differs from ''normal'' TMail
...ver the vendor included version of TMail actually does decode the
body for you and silently performs automatic quoted-printable
conversion. Which, if you were previously developing your mail
handling functions outside of rails, you may have already implemented
yourself, with something like:
def decode_quoted_printable(text)
text.gsub(/\r\n/, "\n").unpack("M").first
end
But if you run this over an already decoded string then you''ll lose
everything after the first equals sign. Which is probably not what
you wanted, especially if you''re dealing with text/html.
So if yo...