379.5. 如何在 Xstream DataFormat 中设置 XML 编码?
在 Camel 2.2.0 中,您可以使用密钥 Exchange.CHARSET_NAME 设置 Exchange 的 属性,或者在 DSL 或 Spring 配置上设置编码属性,在 Xstream DataFormat 中设置 XML 编码。
from("activemq:My.Queue").
marshal().xstream("UTF-8").
to("mqseries:Another.Queue");
from("activemq:My.Queue").
marshal().xstream("UTF-8").
to("mqseries:Another.Queue");