MimeLoadData(Mime);
}
- /* Boring old 80-column fixed format text gets handled this way... */
- if ((strcasecmp(ChrPtr(Mime->Charset), "us-ascii") == 0) &&
- (strcasecmp(ChrPtr(Mime->Charset), "UTF-8") == 0))
- ConvertIt = 0;
-
#ifdef HAVE_ICONV
if (ConvertIt) {
if (StrLength(Mime->Charset) != 0)
if (cs == NULL) {
ConvertIt = 0;
}
+ else if (!strcasecmp(ChrPtr(cs), "utf-8")) {
+ ConvertIt = 0;
+ }
+ else if (!strcasecmp(ChrPtr(cs), "us-ascii")) {
+ ConvertIt = 0;
+ }
else {
ctdl_iconv_open("UTF-8", ChrPtr(cs), &ic);
if (ic == (iconv_t)(-1) ) {
for (i = bq; i < bn; i++)
StrBufAppendBufPlain(Target, HKEY("</blockquote>"), 0);
- if (ConvertIt == 1) {
+ if (ConvertIt) {
StrBufConvert(Line, Line1, &ic);
}