KConfigGroupSaver saver(cfg, "Composer");
if (cfg->readListEntry("pref-charsets").isEmpty())
{
cfg->writeEntry("pref-charsets", "us-ascii,iso-8859-1,locale,utf-8");
cfg->writeEntry("pref-charsets", "locale,us-ascii,iso-8859-1,utf-8");
}
readConfig();
kdDebug(5006) << "Something is wrong and I can not get a codec." << endl;
textbody = text.local8Bit();
} else {
text=codec->toUnicode(text.latin1(), text.length());
textbody = codec->fromUnicode( text );
if (textbody.isNull()) textbody = "";