ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportProblem with national characters in the broker 6.0

Post new topicReply to topic
Problem with national characters in the broker 6.0 View previous topic :: View next topic
Author Message
Bartez75
PostPosted: Wed Mar 19, 2008 5:13 am Post subject: Problem with national characters in the broker 6.0 Reply with quote

Voyager

Joined: 26 Oct 2006
Posts: 80
Location: Poland, Wroclaw

Hi


Filed_UTF8 has value from message set field.
I'm doing this below in the java code.

Code:

try {
   Field_UTF8 = new String(Field_UTF8.getBytes("Cp500"),"UTF-8");
} catch (UnsupportedEncodingException e) {
   miscUtil.logAndCreateRuntimeException(e);
}



In debug mode I looked on the message set and Swedish character ö looks ok: avgasrör

but after putting message to a queue it is wrong. Below it is taken from rfhutil: avgasr”r

In rfhutil on the MQMD tab:
MQ Message Format: MQHRF2
Code Page: 1208

On RFH tab of rfhutil:
Data Format: MQSTR
Code Page: 437
CCSID: 1208


Any idea?
Do you need more information?
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Mar 19, 2008 12:10 pm Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
after putting message to a queue it is wrong
Are you sure it is wrong? I've seen cases where it looked wrong, but that was just a fault in the application being used to view the message.
I suggest viewing the raw bytes of the message before concluding that there's a problem.
Back to top
View user's profile Send private message
Bartez75
PostPosted: Tue Mar 25, 2008 2:34 am Post subject: Reply with quote

Voyager

Joined: 26 Oct 2006
Posts: 80
Location: Poland, Wroclaw

Code Page is 437. Hex value for that character ö is 94 which is correct according to http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AQ501/F.19?SHELF=&DT=19971201194621&CASE=

Message was browsed from the queue by rfhutil program.

So, should I believe that this is ok?[/b]
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 25, 2008 2:07 pm Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Bartez75 wrote:
Code Page is 437. Hex value for that character ö is 94 which is correct according to http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AQ501/F.19?SHELF=&DT=19971201194621&CASE=

Message was browsed from the queue by rfhutil program.

So, should I believe that this is ok?[/b]

Don't look at the rfhutil text output.
Look at the hex values.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportProblem with national characters in the broker 6.0
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.