mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 17:07:45 +02:00
* need 16-bit array for unicode
This commit is contained in:
parent
d355ad8e58
commit
1c36ead825
@ -360,7 +360,7 @@ begin
|
|||||||
enc:='utf-16be';
|
enc:='utf-16be';
|
||||||
FDecoderUTF16:=TJSTextDecoder.New(enc);
|
FDecoderUTF16:=TJSTextDecoder.New(enc);
|
||||||
end;
|
end;
|
||||||
Result:=FDecoderUTF16.decode(SharedToNonShared(Arr));
|
Result:=FDecoderUTF16.decode(SharedToNonShared(Arr,True));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TJSObjectBridge.DecodeUTF8Buffer(Arr: TJSUint8Array): String;
|
function TJSObjectBridge.DecodeUTF8Buffer(Arr: TJSUint8Array): String;
|
||||||
|
Loading…
Reference in New Issue
Block a user