lazutils: LoadFromCSVStream: fixed reading UTF16

git-svn-id: trunk@50232 -
This commit is contained in:
mattias 2015-11-06 12:05:15 +00:00
parent 6d5708e02c
commit a1e2f1e248

View File

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