When Marshaling Java Object into XML, it generates the xml with encoding even if I don't specify any encoding.
<?xml version="1.0" encoding="UTF-8"?> When I generate the Schema using SourceGenerator generateSource method, I get the following error: org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "Cp1252"; this might not be an error. If I manually delete the encoding in the XML and generate XSD, it works fine (but I don't want to do any manual changes to the generated XML) Or if setEncoding to Cp1252 while generating the XML, generateSource wouldn't complain about the encoding mismatch, but the generated XSD contains the encoding "UTF-8", which I will have to manually edit it to Cp1252 before generating the Source from the XSD otherwise it would complain about the encoding mismatch again. My question is, is there any way to turn encoding off while generating the XML or is there any way to specify encoding while generating the XSD? -- View this message in context: http://www.nabble.com/Issues-with-encoding---Declared-encoding-%22UTF-8%22-does-not-match-actual-one-%22Cp1252%22-tp24980036p24980036.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

