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.




-- Harrie ------------------------------------------------------------------ Sync4j Support http://www.sync4j.org/ mailto: harrie(at)funambol.com http://www.funambol.com/ ------------------------------------------------------------------ The information in this message is to be considered non-official. The message is for the designated recipient only and may contain privileged or confidential information. If you are not the addressee you are hereby notified that any use, distribution, reproduction or disclosure of this communication is strictly prohibited. If you have received it in error, please notify the sender immediately and delete the original and its attachments.


------------------------------------------------------- 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