Author |
Message
|
j0ann3a |
Posted: Thu Jul 10, 2014 7:38 pm Post subject: Thai Char Display Problem |
|
|
Newbie
Joined: 10 Jul 2014 Posts: 2
|
Hi Guys..
I'm trying to display thai characters in a web base java platform but unsuccessful as its showing as [] [] [] [] [] on the screen.
Can anybody help me?
OS is Linux Red Hat
The encoding setting is windows-874
Below is the setup we tried to used to get the response from a Mainframe platform
SET OutputRoot.MQRFH2.Encoding = 838;
SET OutputRoot.MQRFH2.CodedCharSetId = 874;
[/img] |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 11, 2014 4:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you are talking about a web based java platform. Why not use UTF-8 ?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 11, 2014 5:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You need to determine whether the characters are correct - but not displaying properly - or whether they are incorrect.
If they are incorrect, you need to determine exactly where they are wrong. It could even be that they're wrong inside the mainframe before you ever get them!
You need to DETERMINE what the CCSIDs of the message data is, in all places. You should not just *GUESS* or *decide* that one is the right one to use.
Then you need to look at the byte values of the characters as they move from one system to another.
This is a *process*. There's no *magic answer*. |
|
Back to top |
|
 |
j0ann3a |
Posted: Thu Jul 17, 2014 2:09 am Post subject: |
|
|
Newbie
Joined: 10 Jul 2014 Posts: 2
|
Hi Guys
sorry i was not clear earlier.
there is two systems connecting - one is Mainframe - Z/OS and the other is midrange - Linux
the display of the characters in the mainframe is fine.
we are able to accept midrange - to mainframe using Thai Characters fine.
we used below setting for midrange to mainframe
SET OutputRoot.MQRFH2.Encoding = 874;
SET OutputRoot.MQRFH2.CodedCharSetId = 838;
when we try to use it for mainframe to midrange response (message triggered from midrange) it shows as boxes.
we tried inversing it.
SET OutputRoot.MQRFH2.Encoding = 838;
SET OutputRoot.MQRFH2.CodedCharSetId = 874
we followed this
http://www-01.ibm.com/support/knowledgecenter/#!/SSFKSJ_8.0.0/com.ibm.mq.ref.dev.doc/q104470_.htm
the encoding at the application is windows-874. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jul 17, 2014 4:55 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
j0ann3a wrote: |
when we try to use it for mainframe to midrange response (message triggered from midrange) it shows as boxes. |
What utility are you using to display the message?
Keep in mind that not all hex characters can be successfully displayed or printed. As Jeff suggests, you need to look at the hex characters before the message is sent down the network, and after it has been received.
The Encoding and CCSID settings of the MQMD does NOT make (invert, convert, transform, translate) the application data portion of the message into Thai. The program that creates the application data portion of the message determines the actual message data content.
j0ann3a wrote: |
we used below setting for midrange to mainframe
SET OutputRoot.MQRFH2.Encoding = 874;
SET OutputRoot.MQRFH2.CodedCharSetId = 838;
|
Have you determined what Encoding 874 and CCSID 838 mean? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
MQsysprog |
Posted: Thu Jul 17, 2014 6:11 am Post subject: |
|
|
Centurion
Joined: 24 Feb 2014 Posts: 116
|
Hi ,
I would like to check also :
1) If the conversion is requested on the MQ Z/OS sender channel
with conv=yes
2) Or conversely if you convert the message using mqgmo convert option at the back end ,when you receive the message
3) If your message contains some non numeric data .
And finallly the Sw levels of the two Qmanagers involved in the process ... |
|
Back to top |
|
 |
|