From a5802045659ef6977fe9db907ab67cdcb3cc9f69 Mon Sep 17 00:00:00 2001 From: ZhurmilovVadim Date: Mon, 4 Mar 2024 09:11:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=BA=D0=BE=D0=B4=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B5=D1=89=D0=B5=20=D1=80=D0=B0=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/src/modules/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/ajax.js b/public/src/modules/ajax.js index ce3245ac..9766718d 100644 --- a/public/src/modules/ajax.js +++ b/public/src/modules/ajax.js @@ -120,7 +120,7 @@ class NoteRequests { for (const elem of body) { const decoded = atob(elem.data) const bytes = Uint8Array.from(decoded, (m) => m.codePointAt(0)); - elem.data = JSON.parse(bytes.toString()) + elem.data = JSON.parse(new TextDecoder().decode(bytes)) } console.log(body) return body