From 9c5f7f24b7c71b20840e40e62efc95924d19612e Mon Sep 17 00:00:00 2001 From: RhiobeT Date: Mon, 3 Feb 2020 13:18:44 +0100 Subject: [PATCH] Better safe than sorry --- src/charset_detect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charset_detect.cpp b/src/charset_detect.cpp index aab4ef7de..0ece3b6dd 100644 --- a/src/charset_detect.cpp +++ b/src/charset_detect.cpp @@ -48,7 +48,7 @@ namespace CharSetDetect { std::string GetEncoding(agi::fs::path const& filename) { auto encoding = agi::charset::Detect(filename); if (!encoding.empty()) { - if (!encoding.compare("ASCII")) + if (!encoding.compare("ASCII") || !encoding.compare("UTF-8")) encoding = "utf-8"; return encoding; }