[JDEV] Karma and transferring large XML message packets...

jens at mac.com jens at mac.com
Wed Apr 25 19:10:53 CDT 2001

On Wednesday, April 25, 2001, at 04:18 PM, David Waite wrote:

> bytes >127 are actually supposed to be UTF8-encoded

That's actually almost certainly why the server was barfing on the 
data -- bad UTF-8, not bad XML. For example, IIRC, a byte >127 indicates 
the first byte of a multibyte character, and the subsequent byte(s) of 
the same character are supposed to also have the high bit set. So any 
three byte sequence of the form [<128] [>=128] [<128] would be illegal 
UTF-8 and cause the parser to barf.

So David's recommendation to go with base64 should fix the problem.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 620 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010425/7ac247be/attachment-0002.bin>

More information about the JDev mailing list