Commit 84531f83 authored by Laurent Montel's avatar Laurent Montel 😁

Fix display correct charset

parent 82aa7a26
......@@ -749,6 +749,9 @@ QByteArray Util::htmlCodec(const QByteArray &data, const QByteArray &codec)
if (currentCodec.isEmpty()) {
currentCodec = QByteArray("UTF-8");
}
if (currentCodec == QByteArray("us-ascii")) {
currentCodec = QByteArray("iso-8859-1");
}
if (data.contains("charset=\"utf-8\"")
|| data.contains("charset=\"UTF-8\"")
|| data.contains("charset=UTF-8")) {
......
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