Commit 339c09d outchy
committed
1 parent 1e2ea66 commit 339c09d Copy full SHA for 339c09d
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1200,7 +1200,7 @@ procedure TJclSimpleXML.LoadFromString(const Value: string);
1200
1200
var
1201
1201
Stream: TStringStream;
1202
1202
begin
1203
- Stream := TStringStream.Create(Value );
1203
+ Stream := TStringStream.Create(Value { $IFDEF SUPPORTS_UNICODE } , CP_UTF16LE { $ENDIF } );
1204
1204
try
1205
1205
LoadFromStream(Stream);
1206
1206
finally
Original file line number Diff line number Diff line change @@ -2402,7 +2402,7 @@ function TJclStringStream.InternalSetNextBuffer(S: TStream;
2402
2402
2403
2403
procedure TJclStringStream.InvalidateBuffers ;
2404
2404
begin
2405
- FStrBufferStart := FStream.Seek(0 , soCurrent);
2405
+ FStrBufferStart := FStream.Seek(Length(FBOM) , soCurrent);
2406
2406
FStrBufferNext := FStrBufferStart;
2407
2407
FStrBufferPosition := 0 ;
2408
2408
FStrBufferCurrentSize := 0 ;
You can’t perform that action at this time.
0 commit comments