This content has been marked as final.
Show 3 replies
-
1. Re: How to support Big5 char set with JBossMQ
genman Jul 22, 2004 6:30 PM (in response to albren)The internal transport representation for javax.jms.TextMessage is UTF. If you have captured the character data from the socket, which is what I assume you are using for talking with your C++ app, verify that you are constructing the string correctly.
Socket s; byte b[] = new byte[1000]; s.getInputStream().read(b, 0, 1000); String str = new String(b, "big5");
In other words, probably not a JMS bug. -
2. Re: How to support Big5 char set with JBossMQ
albren Jul 22, 2004 10:58 PM (in response to albren)Hi genman,
Thanks for this help. I will try it and give you feedback asap.
By the way, I am using the MapMessage and not the TextMessage, is it the same case?
Thanks in advanced. -
3. Re: How to support Big5 char set with JBossMQ
albren Jul 23, 2004 1:52 AM (in response to albren)It worked. Thanks.