Better safe than sorry

This commit is contained in:
RhiobeT 2020-02-03 13:18:44 +01:00
parent 7bbf150b44
commit 9c5f7f24b7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}