[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] Accept ASCII_8BIT in String.check



I was having problems with encoded emails. Using archlinux / ruby
1.9.1_p378 Iconv.iconv returns the encoding ASCII_8BIT,
which was rejected by String.check.

Before I was getting debug messages like this when converting mails or
building the index:
 couldn't transcode text from ISO-8859-1 (ISO-8859-1) to utf8) (...)
(got unexpected encoding ASCII-8BIT (String::CheckError))
My String.check now contains:
  if respond_to?(:encoding) && !(encoding == Encoding::UTF_8 ||
encoding == Encoding::ASCII || encoding == Encoding::ASCII_8BIT)
And everything is working as expected. Instead of text.ascii the real
umlauts are displayed.

Hope that helps,
Johann
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel