Yes, this is case sensitive at present. It looks like it shouldn't be, though, since the Java Charset is not case sensitive. I'll change it for RC0.

 - Dennis

harrie hazewinkel wrote:


I would like to know whether the charset provided to the marshallDocument method is case sensitive.

I try to feed it with charset = "utf-8" and then I get
this exception below, but if I feed it which charset = "UTF-8"
all goes fine.

[05-Apr-2005 12:44:00][sync4j.server] SEVERE:
Error in converting the message:
No character escaper defined for encoding utf-8
[05-Apr-2005 12:44:00][sync4j.server] FINER: THROW
org.jibx.runtime.JiBXException:
No character escaper defined for encoding utf-8
at org.jibx.runtime.impl.MarshallingContext.createEscaper(MarshallingContext.java:139)


at org.jibx.runtime.impl.MarshallingContext.setOutput(MarshallingContext.java:214)

at org.jibx.runtime.impl.MarshallingContext.startDocument(MarshallingContext.java:398)

at org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:966)



This would be the relevant code.

final SyncML msg
String charset

ByteArrayOutputStream bout = new ByteArrayOutputStream();
IBindingFactory f = BindingDirectory.getFactory(SyncML.class);
IMarshallingContext c = f.createMarshallingContext();
c.setIndent(0);
c.marshalDocument(msg, charset, null, bout);



I guess an easy way for me is to make the charset always upper case.






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to