On Thu, Sep 24, 2009 at 2:07 AM, SoaMattH <[email protected]> wrote: > > I have done a little digging around and it seems > that jaxb is unable to handle the complete UTF-8 character set in xml. > I do realise that the UTF-8 control characters are Illegal in xml) > > in my case it is the degree symbol ° > > any XML that contains this symbol fails to parse > > I have a > <camel:dataFormats> > <camel:jaxb encoding="UTF-8" > id="incidentJaxb" > prettyPrint="true" > contextPath="au.gov.qld.des.oms.esb.escad.incident" /> > </camel:dataFormats> > > <camel:route errorHandlerRef="incidentDeadLetter" id="incidentFileRoute"> > .... > <camel:to uri="bean:incidentValidate?method=fixBadUTFEncoding" /> > <camel:unmarshal ref="incidentJaxb" /> > .... > </camel:route> > > The best solution I can come up with is to write a validation bean that > fixes the xml > does any one else have any thoughts? > > If not would it be worth putting this xml escaping/fixing code back into > Camel? >
Is there some sort of website or whatever that lists the bad characters that JAXB cannot handle? And where did you find / read about this limitation with JAXB? Could make sense to put in, but just want it to be a standard solution. > Thanks Matt > > > > -- > View this message in context: > http://www.nabble.com/UTF-8-characters-jaxb-tp25531336p25531336.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
