Save config in UTF-8

This commit is contained in:
Osyotr 2024-11-06 01:55:46 +03:00
parent 85f45d2788
commit a3f38aae93

View File

@ -658,7 +658,7 @@ void save(const std::filesystem::path& path) {
// TODO Migration code, after a major release this should be removed. // TODO Migration code, after a major release this should be removed.
data.at("GUI").as_table().erase("installDir"); data.at("GUI").as_table().erase("installDir");
std::ofstream file(path, std::ios::out); std::ofstream file(path, std::ios::binary);
file << data; file << data;
file.close(); file.close();
} }