On Nov 2, 2012, at 8:32 AM, Sergei Gorelkin <sergei_gorel...@mail.ru> wrote:

> 
> In this case, the issue is not encoding, but literal ESC (#27) code used in 
> data. XML specification does not allow codepoints below 32, except TAB,CR and 
> LF, to appear in data, both in literal and escaped forms.
> In other words, XML is wrong technology to work with binary data, unless it 
> is encoded into textual form (Base64 or alike).
> 

Ok.  The data comes from a summary function that grabs a few pieces of an email 
message on this case. The subject an top 2 lines of the message.  Email is text 
so it would most likely be memory corruption as the source of any low order 
bytes like 0. 

But actual file data when streamed is done so via  MIME. 
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to