mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 17:25:54 +08:00
FIX: parse json error while json with emoji
Change-Id: Ic9d92b832c2f796d9bd399c4ebeebff1a5b2fec2 (cherry picked from commit cd57f0c7f221f03312a8cdc3ba3b81e67e95f64f)
This commit is contained in:
parent
494e9c9f4f
commit
42bde27302
@ -255,7 +255,7 @@ void ZUserLogin::OnScriptMessage(wxWebViewEvent &evt)
|
|||||||
{
|
{
|
||||||
wxString str_input = evt.GetString();
|
wxString str_input = evt.GetString();
|
||||||
try {
|
try {
|
||||||
json j = json::parse(str_input);
|
json j = json::parse(into_u8(str_input));
|
||||||
|
|
||||||
wxString strCmd = j["command"];
|
wxString strCmd = j["command"];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user