We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db9016 commit 349e460Copy full SHA for 349e460
src/utils/RALStream.pas
@@ -140,7 +140,7 @@ function StringToStreamUTF8(const AStr: StringRAL): TStream;
140
141
function StreamToString(AStream: TStream): StringRAL;
142
var
143
- vBytes : TBytes;
+ vBytes: TBytes;
144
begin
145
Result := '';
146
if (AStream = nil) or (AStream.Size = 0) then
@@ -160,7 +160,7 @@ function StreamToString(AStream: TStream): StringRAL;
160
161
SetLength(vBytes, AStream.Size);
162
AStream.Read(vBytes[0], AStream.Size);
163
- Result := BytesToString(vBytes);
+ Result := BytesToStringUTF8(vBytes);
164
end;
165
166
0 commit comments