Author |
Message
|
h.hosseininejad |
Posted: Fri Mar 06, 2009 4:58 am Post subject: Problem with Farsi message in MQ |
|
|
Novice
Joined: 26 Jan 2009 Posts: 10
|
Hi all, specially Vitor.
javascript:emoticon(' ') .
I can successfully connect to my QManager and send a message which has Farsi (persian) content. Here is no problem. But when I want to get that message, I have '???? ????' like my characters.
I watched ccsid.tbl file and saw that supported ccsid is 1097, 1098. so I changed my MQEnvironment CCSID to 1098. But I get 2195 error:
CCSID not supported by Queue Manager.
Appreciating any help. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 06, 2009 5:08 am Post subject: Re: Problem with Farsi message in MQ |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
h.hosseininejad wrote: |
Hi all, specially Vitor.  |
So now I have an apprentice and a groupy?
h.hosseininejad wrote: |
I watched ccsid.tbl file and saw that supported ccsid is 1097, 1098. so I changed my MQEnvironment CCSID to 1098. But I get 2195 error:
CCSID not supported by Queue Manager.
Appreciating any help. |
For the lingistically challenged (noteably me) what language is 1098? What CCSID is the original message coded in (I'm guessing there's not a code page called 'Farsi')? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 06, 2009 5:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Following from this problem, maybe you should share with us the OS & level of WMQ you're using.
It does sound a lot like this is the conversion error you should have got instead of the 2009 you were getting last time. So it's not impossible you have another symptom of the same root cause. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Tibor |
Posted: Fri Mar 06, 2009 5:42 am Post subject: Re: Problem with Farsi message in MQ |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
h.hosseininejad wrote: |
I can successfully connect to my QManager and send a message which has Farsi (persian) content. Here is no problem. But when I want to get that message, I have '???? ????' like my characters.
I watched ccsid.tbl file and saw that supported ccsid is 1097, 1098. so I changed my MQEnvironment CCSID to 1098. But I get 2195 error:
CCSID not supported by Queue Manager. |
However I am not Vitor, but I recommend you not to change the connection codepage. In our company all the queue managers are set to ASCII / Latin-1 to avoid the similar conversion problems in the channel.
Of course, you can use the CodedCharacterSetId in message level.
Hope this helps,
Tibor |
|
Back to top |
|
 |
h.hosseininejad |
Posted: Fri Mar 06, 2009 11:36 pm Post subject: |
|
|
Novice
Joined: 26 Jan 2009 Posts: 10
|
I'm using windows XP, and WMQ ver 6.
Where Can I set CCSID of Queue Manager?
Thanks in Advance |
|
Back to top |
|
 |
Vitor |
Posted: Sat Mar 07, 2009 2:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
h.hosseininejad wrote: |
Where Can I set CCSID of Queue Manager?
|
Using ALTER QMGR or it's equivalent via MQExplorer. Be very certain before you change it that you understand what doing this means and the consequences for all applications using that queue manager.
Once you're certain push the button and it changes! _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
h.hosseininejad |
Posted: Sat Mar 07, 2009 3:39 am Post subject: |
|
|
Novice
Joined: 26 Jan 2009 Posts: 10
|
Now both QueueManager and messager use 1098 CCSID. Exception is not thrown anymore but I have still ???? instead of my lovely characters.
P.S. Farsi is a right-to-left language. does it make any help? |
|
Back to top |
|
 |
Vitor |
Posted: Sat Mar 07, 2009 4:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
h.hosseininejad wrote: |
Exception is not thrown anymore but I have still ???? instead of my lovely characters.
|
I did warn you to be certain of what you were doing.
You've still not answered my original questions, which I think are key to your issue:
Vitor wrote: |
what language is 1098? What CCSID is the original message coded in (I'm guessing there's not a code page called 'Farsi')? |
_________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
h.hosseininejad |
Posted: Sat Mar 07, 2009 4:46 am Post subject: |
|
|
Novice
Joined: 26 Jan 2009 Posts: 10
|
|
Back to top |
|
 |
Vitor |
Posted: Sat Mar 07, 2009 10:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Why do so many people on this forum think that a copy of the manuals taken by the state government of North Carolina in 2002 is an authoratative source of WMQ information? For a version of WMQ released after 2002? When there's a link to the IBM infocentre at the top of this page? Which indicates which version it's talking about when this mirror does not?
h.hosseininejad wrote: |
My originial message is a combination of English and Farsi. |
Then it's untranslatable. A WMQ message is in one code page or another. If the original message is encoded in 1098, which has English and Farsi characters, then it should be interpreted without conversion if the queue manager is using that.
The question then comes how are you seeing these "???" characters? Is it not more possible that whatever you're using to view the message speaks Latin-1 and cannot display Farsi characters?
h.hosseininejad wrote: |
And Farsi is the laguage spoken in my lovely country, Iran. |
That I knew. What code page 1098 was I did not.
h.hosseininejad wrote: |
Did I answer your questions? |
Aside from why you use that mirror rather than genuine manuals, and that question was largely rhetorical. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Tibor |
Posted: Sun Mar 08, 2009 1:59 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
Off:
Vitor wrote: |
Why do so many people on this forum think that a copy of the manuals taken by the state government of North Carolina in 2002 is an authoratative source of WMQ information? For a version of WMQ released after 2002? When there's a link to the IBM infocentre at the top of this page? |
Because this page has a good rank by the search engines, just try it with the google.
/Off
hosseininejad:
Please send a hexadecimal output of your message. Without this the meaning of ??? is ambigous
Anyway, if you want to use mixed language messages, my recommendation is a Unicode codepage, e.g UTF-8. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Mar 08, 2009 3:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Tibor wrote: |
Off:
Vitor wrote: |
Why do so many people on this forum think that a copy of the manuals taken by the state government of North Carolina in 2002 is an authoratative source of WMQ information? For a version of WMQ released after 2002? When there's a link to the IBM infocentre at the top of this page? |
Because this page has a good rank by the search engines, just try it with the google.
/Off
|
Maybe we should make the link at the top of this page
BIGGER AND BRIGHTER
How in the name of all that's holy has a government department managed that? Who's running this reality? Is there a complaints department? A helpline?
"Thank you for calling the Reality Helpline. If you have a problem with a situation press 1. If you an exentensial issue press 2. If you have a problem with gravity, and have not been drinking, press 3. For all other matters (or anti-matters) please hold for a service representative."
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Mar 08, 2009 6:11 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
Because this page has a good rank by the search engines, just try it with the google. |
This demonstrates the issue of truth vs. popularity on Mr. Internet. _________________ 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 |
|
 |
Vitor |
Posted: Sun Mar 08, 2009 8:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Quote: |
Because this page has a good rank by the search engines, just try it with the google. |
This demonstrates the issue of truth vs. popularity on Mr. Internet. |
Nicely put!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vol |
Posted: Mon Mar 09, 2009 11:00 pm Post subject: |
|
|
Acolyte
Joined: 01 Feb 2009 Posts: 69
|
To return to the original post, WMQ only deals with the transmission of msgs and the characters they contain, and where necesary the conversion of those characters from one CCSID to another, typically when msgs are transmitted from one type of machine to another, for example from UNIX to mainframe. The display of characters in a msg subsequent to transmission is nothing to do with WMQ. It seems likely in this post that the msg characters are correct, but the software used to display the msg is not interpreting them correctly and so displaying them as unknown, ???. |
|
Back to top |
|
 |
|