379.5. 如何在 Xstream DataFormat 中设置 XML 编码?
在 Camel 2.2.0 中,您可以通过使用密钥 Exchange.CHARSET_NAME
设置 Exchange 的属性,或者从 DSL 或 Spring 配置设置 Xstream 上的 encoding 属性,在 Xstream 中设置 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");