* need 16-bit array for unicode

This commit is contained in:
Michael Van Canneyt 2025-02-07 09:54:40 +01:00
parent d355ad8e58
commit 1c36ead825

View File

@ -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;