mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +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
|
||||
ConvertToUTF16;
|
||||
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);
|
||||
leadPtr := @Buffer[1];
|
||||
BufLen := length(Buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user