Commit dfaaec1d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix bug about encoding as RFC2047 with "_"

parent 69abfbee
......@@ -255,7 +255,16 @@ void Structured::from7BitString(const char *s, size_t len)
void Structured::from7BitString(const QByteArray &s)
#if 1
//Bug about mailto with space which are replaced by "_" so it failed to parse
//=> we reconvert to correct encoding as RFC2047
const QString str = KCodecs::decodeRFC2047String(s, &d->encCS, Content::defaultCharset());
const QByteArray ba = KCodecs::encodeRFC2047String(str, d->encCS);
from7BitString(ba.constData(), ba.length());
from7BitString(s.constData(), s.length());
QString Structured::asUnicodeString() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment