[xsd-users] How to get around invalid characters in UTF-8 string

Homer J S js.homer at yahoo.com
Thu Mar 17 19:55:02 EDT 2011


Hello everyone,
When parsing an UTF-8 encode xml file I got the following error from the parser:

"An exception occurred! Type:UTFDataFormatException, Message:Exceede bytes 
limits , 6-byte sequence"

I believe the reason is due to a string that contain invalid byte sequence for 
UTF-8 encoding. I am on the receiver side of this xml message and cannot control 
what's in it.

Is there a way to to get the parser to bypass those characters, strip them out, 
or replace them with something else?

Many thanks,

JS


      


More information about the xsd-users mailing list