mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 20:21:04 +02:00
lazutils: LoadFromCSVStream: fixed reading UTF16
git-svn-id: trunk@50232 -
This commit is contained in:
parent
6d5708e02c
commit
a1e2f1e248
@ -193,7 +193,7 @@ var
|
|||||||
if CSVEncoding=ceUTF16be then
|
if CSVEncoding=ceUTF16be then
|
||||||
ConvertToUTF16;
|
ConvertToUTF16;
|
||||||
SetLength(W,(tailPtr-leadPtr) div 2 +1);
|
SetLength(W,(tailPtr-leadPtr) div 2 +1);
|
||||||
System.Move(leadPtr^,W[1],length(W));
|
System.Move(leadPtr^,W[1],length(W)*2);
|
||||||
Buffer := UTF8Encode(W);
|
Buffer := UTF8Encode(W);
|
||||||
leadPtr := @Buffer[1];
|
leadPtr := @Buffer[1];
|
||||||
BufLen := length(Buffer);
|
BufLen := length(Buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user