简体   繁体   中英

Mule ESB standalone encoding corruption

I have a situation in Mule ESB where I am sending in messages on a ActiveMQ through the interactive console, these messages are encoded in utf-8. But when I try to send the same messages in on a restricted server with a mule standalone enterprise edition, the encoding of the messages are corrupted and no longer utf-8. Is this because of a configuration setting of the standalone server that has to be set or?

We are using

  • Mule Runtime 3.7.0
  • Java Compiler 1.7 jdk 1.7.0_79
  • ActiveMQ 5.11.1
  • Windows Server 2012 R2

My guess is the default encoding of your platform, that is Windows Server. The default encoding might be ISO-8859-1. Mule ESB normally sits on the platform encoding.

In addition, you could force the Encoding of your IDE Anypoint Studio to debug your project, check this

In your flow, you could try to add the encoding manually

<byte-array-to-string-transformer doc:name="Byte Array to String" encoding="UTF-16"/>

Check this link

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM