Make encoding conversion pass //IGNORE to iconv
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 9 Nov 2010 15:13:47 +0000 (12:13 -0300)
committerRich Lane <rlane@club.cc.cmu.edu>
Mon, 15 Nov 2010 04:10:16 +0000 (20:10 -0800)
commit60108ad6b5b9257406ad35040cf0b47c5dd8a06d
tree26ef4409f69139a091875dc889c7af3550bcff8f
parentf18ca8b632442e1c3994d0063c39913b57fe79ad
Make encoding conversion pass //IGNORE to iconv

This makes transcoding failure a bit more user-friendly by discarding
broken chars and displaying what can be successfully transcoded, instead
of punting and displaying the ASCII representation.

This is particularly useful when corporate email systems append a
disclaimer that's encoded in a different encoding than whatever the user
has set up in the MUA; or when broken remote MUAs fail to re-encode the
quoted part when they reply in a different encoding.
lib/sup/util.rb