From 1c36ead8256b2c48e35db9a3c92427f9cd987517 Mon Sep 17 00:00:00 2001 From: Michael Van Canneyt Date: Fri, 7 Feb 2025 09:54:40 +0100 Subject: [PATCH] * need 16-bit array for unicode --- packages/job/src/job_browser.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/job/src/job_browser.pp b/packages/job/src/job_browser.pp index e42920f..267a3c5 100644 --- a/packages/job/src/job_browser.pp +++ b/packages/job/src/job_browser.pp @@ -360,7 +360,7 @@ begin enc:='utf-16be'; FDecoderUTF16:=TJSTextDecoder.New(enc); end; - Result:=FDecoderUTF16.decode(SharedToNonShared(Arr)); + Result:=FDecoderUTF16.decode(SharedToNonShared(Arr,True)); end; function TJSObjectBridge.DecodeUTF8Buffer(Arr: TJSUint8Array): String;