activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RuralHunter <>
Subject Character encoding problem of the messages in queue
Date Mon, 07 Mar 2011 16:46:44 GMT
Hi, I'm using Activemq 5.4.2 on Ubuntu server.
I put text message with java by these codes:
TextMessage message = session.createTextMessage(myText);
        myLogger.finest("Sent message:");

"myText" contains some Chinese characters. and I can see characters are
correct in the log output above. But when I get the message from either
another java program or by the web admin console, I can see the Chinese
characters become "????". I guess some character encoding transformation
happened when the messages put into the queue. What should I do to make the
Chinese characters correct in the queue? Is there a charset/encoding
parameter I can set for the broker or queue or maybe the JVM?

btw, I used to use 5.4.x(some old version) before on windows and didn't see
this problem.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message