[fpc-devel] XML Components

Andrew Brunner atbrunner at aurawin.com
Fri Nov 2 14:41:05 CET 2012



On Nov 2, 2012, at 8:32 AM, Sergei Gorelkin <sergei_gorelkin at 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. 


More information about the fpc-devel mailing list