diff --git a/strings/json_lib.c b/strings/json_lib.c index 31d5807418a..4d9a9aac594 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1656,15 +1656,7 @@ int json_unescape(CHARSET_INFO *json_cs, } if (c_len == MY_CS_ILUNI) { - /* - Result charset doesn't support the json's character. - Let's replace it with the '?' symbol. - */ - if ((c_len= my_ci_wc_mb(res_cs, '?', res, res_end)) > 0) - { - res+= c_len; - continue; - } + return -1; } /* Result buffer is too small. */ return -1;