mimeparse: use cp1252 instead of iso-8859 on values with residual 8bit chars.

Also: comments and missing std:: qualifiers
This commit is contained in:
Jean-Francois Dockes
2018-11-22 17:42:00 +01:00
parent 01cea06201
commit 0cdcaea437
3 changed files with 32 additions and 23 deletions
+1 -1
View File
@@ -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();
}