diff --git a/common/file.cpp b/common/file.cpp index 632d1696b..fc147c1f9 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -47,7 +47,9 @@ namespace fs = std::filesystem; */ bool File::Exists(const std::string &name) { - return fs::exists(fs::path{name}); + // fs::exists(fs::path{name}) does not work for Chinese characters in windows + std::ifstream f(name); + return f.good(); } /**