Skip to content
Extraits de code Groupes Projets
Valider 9c5f7f24 rédigé par RhiobeT's avatar RhiobeT
Parcourir les fichiers

Better safe than sorry

parent 7bbf150b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -48,7 +48,7 @@ namespace CharSetDetect { ...@@ -48,7 +48,7 @@ namespace CharSetDetect {
std::string GetEncoding(agi::fs::path const& filename) { std::string GetEncoding(agi::fs::path const& filename) {
auto encoding = agi::charset::Detect(filename); auto encoding = agi::charset::Detect(filename);
if (!encoding.empty()) { if (!encoding.empty()) {
if (!encoding.compare("ASCII")) if (!encoding.compare("ASCII") || !encoding.compare("UTF-8"))
encoding = "utf-8"; encoding = "utf-8";
return encoding; return encoding;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter