Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveMQ queue Encoding

I am sending messages to ActiveMQ queue.

When i send Hebrew letters in the message they dont show correctly, instead "???" is presented.

I am sure its a matter of Encoding.

How can i set the queue Encoding?

Right now i am sending messages encoded as "utf-8" like this:

            message = "אבגדהוז";
            TextMessage mes = session.createTextMessage(message);
            System.out.println(mes);
            producer.send(mes);
like image 247
Michael A Avatar asked Oct 28 '25 19:10

Michael A


1 Answers

For special chrecters ActiveMQ encodes as 'utf-16' when sending the message from admin console.

When not sending from console the message should be sent and taken using 'utf-8' encoding.

like image 71
Michael A Avatar answered Oct 30 '25 08:10

Michael A



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!