diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index abb8ca0e8..894835a69 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -5056,7 +5056,7 @@ json DeviceManager::filaments_blacklist = json::object(); std::string DeviceManager::get_string_from_config(std::string type_str, std::string item) { std::string config_file = Slic3r::resources_dir() + "/printers/" + type_str + ".json"; - std::ifstream json_file(config_file.c_str()); + boost::nowide::ifstream json_file(config_file.c_str()); try { json jj; if (json_file.is_open()) { diff --git a/src/slic3r/Utils/json_diff.cpp b/src/slic3r/Utils/json_diff.cpp index a1e3609f1..a4f4bbcce 100644 --- a/src/slic3r/Utils/json_diff.cpp +++ b/src/slic3r/Utils/json_diff.cpp @@ -83,7 +83,7 @@ bool json_diff::load_compatible_settings(std::string const &type, std::string co printer_version = version2; settings_base.clear(); std::string config_file = Slic3r::resources_dir() + "/printers/" + type2 + ".json"; - std::ifstream json_file(config_file.c_str()); + boost::nowide::ifstream json_file(config_file.c_str()); try { json versions; if (json_file.is_open()) {