mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user