I am
testing my code using SAX Parser. I need to generate a XML file which has an invalid UTF-8 character. Thus it should fail Parsing as the encoding in the file is UTF-8 on the XML prolog statement. At the same time if I use ISO-8859-1 as the encoding scheme in the prolog it should succeed.
My problem is generating a invalid UTF-8 character using a
java client code.
using char from 160 to 255 which is essentially iso characters does not help as 160 is represented as A0.
if anyone has done somethign similar, need your help