Which first $0 are you talking about?
I'm talking about stream content (bytes). First 2 bytes are $64 (100d =
Ascii(D)Ascii(d)) and $00. I'm trying load this stream as text (above code), in sample stream, after load to TStrings I have
'D''d', so looks they stop decoding text when see $0.
When I save data and load in notepad, I see characters separated with space. I want to decode whole stream as text, even if $0 bytes inside.
TStringStream.Create('', TEncoding.Unicode)
TStringStream.LoadFromStream(Source);
TStrings.LoadFromStream(TStringStream);
// result = samplestream(
'D''d')