Author |
Message
|
kumar.shanj |
Posted: Fri May 20, 2011 12:55 pm Post subject: Issue in converting European characters |
|
|
Apprentice
Joined: 18 Nov 2010 Posts: 49
|
In publish subscribe scenario, we are using CharSetId 1208.But when we are passing Polish characters like Schönberger, in the output message , it is being populated as Schönberger
/* Set the publication related fields */
SET OutputRoot.MQRFH2.psc.Command='Publish';
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
SET OutputRoot.MQRFH2.(MQRFH2.Field)CodedCharSetId = 1208;
SET OutputRoot.MQMD.CodedCharSetId = 1208;
/* Set the XML declaration fields */
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';
I tried with giving xml encoding 'UTF-16', but no use.
Please suggest to correct the issue. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri May 20, 2011 4:28 pm Post subject: Re: Issue in converting European characters |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
kumar.shanj wrote: |
In publish subscribe scenario, we are using CharSetId 1208.But when we are passing Polish characters like Schönberger, in the output message , it is being populated as Schönberger
/* Set the publication related fields */
SET OutputRoot.MQRFH2.psc.Command='Publish';
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
SET OutputRoot.MQRFH2.(MQRFH2.Field)CodedCharSetId = 1208;
SET OutputRoot.MQMD.CodedCharSetId = 1208;
/* Set the XML declaration fields */
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';
I tried with giving xml encoding 'UTF-16', but no use.
Please suggest to correct the issue. |
Try setting OutputRoot.Properties.CodedCharSetId to 1208.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
rekarm01 |
Posted: Sun May 22, 2011 12:55 pm Post subject: Re: Issue in converting European characters |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
kumar.shanj wrote: |
In publish subscribe scenario, we are using CharSetId 1208.But when we are passing Polish characters like Schönberger, in the output message , it is being populated as Schönberger |
Look at the input ccsid, and the input message. If that's wrong, then tweaking the output ccsid in the message flow won't help.
kumar.shanj wrote: |
Code: |
/* Set the XML declaration fields */
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Encoding) = 'UTF-8'; |
|
XML is deprecated. Use XMLNSC. |
|
Back to top |
|
 |
kumar.shanj |
Posted: Tue May 24, 2011 5:19 am Post subject: |
|
|
Apprentice
Joined: 18 Nov 2010 Posts: 49
|
we are still using WMB 6.0 and support has been extended till april 2012. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue May 24, 2011 8:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kumar.shanj wrote: |
we are still using WMB 6.0 and support has been extended till april 2012. |
You may have an extended support contract, that is not the same thing as saying that Broker v6.0 support is extended to April 2012.
Unless you have specifically purchased an extended support contract, Broker version 6.0 is completely out of support as of April 30, 2011. |
|
Back to top |
|
 |
Vanshul_MB |
Posted: Tue May 31, 2011 4:00 am Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 68
|
SET OutputRoot.Properties.CodedCharSetId='1208';
SET OutputRoot.Properties.Encoding='546';
This will solve the issue.
We are able to handle 37 languages including Chinese and Japanese... |
|
Back to top |
|
 |
|