I’m receiving messages from a JMS MQ queue which are supposedly utf-8 encoded. However on reading the out using msgText = ((TextMessage)msg).getText();
I get question marks where non standard characters were present. It seems possible to specify the encoding when using a bytemessage, but I cant find a way to specify encoding while reading out the TextMessage. Is there a way to solve this, or should I press for bytemessages?
I’m receiving messages from a JMS MQ queue which are supposedly utf-8 encoded. However
Share
We tried adding
Dfile.encoding="UTF-8"toWebsphere‘s jvm and we addedIn our
MessageListener. This worked for us, so then we took out theDfile.encodingbit away and it still works for us.Due to preferred minimum configuration for
Webspherewe decided to leave it this way, also taking into account that we may easier switch theUTF-8string by a setting from file or database.