mimeparse: use cp1252 instead of iso-8859 on values with residual 8bit chars.
Also: comments and missing std:: qualifiers
This commit is contained in:
@@ -577,7 +577,7 @@ bool rfc2047_decode(const std::string& in, std::string &out)
|
||||
}
|
||||
|
||||
if (value.length() > 0) {
|
||||
transcode(value, utf8, "ISO-8859-1", "UTF-8");
|
||||
transcode(value, utf8, "CP1252", "UTF-8");
|
||||
out += utf8;
|
||||
value.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user