mirror of https://github.com/odrling/Aegisub
Better safe than sorry
This commit is contained in:
parent
7bbf150b44
commit
9c5f7f24b7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue