fix encoding problem

This commit is contained in:
GenevensiS
2025-12-25 12:05:11 +01:00
parent b5cac4c6ef
commit 3d0f21d483
2 changed files with 4 additions and 4 deletions
+3 -1
View File
@@ -315,7 +315,9 @@ ScriptValueP json_to_mse(const boost::json::value& jv, Set* set) {
}
else if (jv.is_string()) {
std::string string = boost::json::value_to<std::string>(jv);
return to_script(String(string.c_str()));
String wxstring = String(string.c_str(), wxConvUTF8);
if (wxstring.empty()) wxstring = String(string.c_str());
return to_script(wxstring);
}
else if (jv.is_array()) {
boost::json::array array = jv.get_array();