Excerpts from anonymous's message of 2010-11-23 11:36:48 +0100: > > New submission from anonymous: > > this happens when i try to send an email... > > ---------------------------------------------------------------- > --- Encoding::CompatibilityError from thread: main > incompatible character encodings: UTF-8 and ASCII-8BIT > /usr/lib/ruby/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:112:in > `serialize_low' > /usr/lib/ruby/gems/1.9.1/gems/rmail-1.0.0/lib/rmail/serialize.rb:99:in `block > in
Hi, ran into the same problem today; this seems to be a problem with rmail. Apply this patch to the installed gem: diff -ru rmail-1.0.0/lib/rmail/serialize.rb rmail-1.0.0-new//lib/rmail/serialize.rb --- rmail-1.0.0/lib/rmail/serialize.rb 2011-03-22 01:08:07.413333337 +0100 +++ rmail-1.0.0-new//lib/rmail/serialize.rb 2011-03-22 01:07:45.183333337 +0100 @@ -109,6 +109,7 @@ @output << message.header.to_s unless message.body.nil? @output << "\n" + message.body.force_encoding 'UTF-8' @output << message.body if depth == 0 and message.body.length > 0 and message.body[-1] != ?\n Best regards, Gaute Hope _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel