Author |
Message
|
kals |
Posted: Tue Jan 22, 2008 9:50 pm Post subject: Swedish characters issue |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 4
|
Hi,
I am retrieving the message from MQ Series 5.3 using S_MQGET method (C# application). When i am reading the message through C# appln, Swedish characters are converted to some symbols. Eg: shakiÅÖ is getting converted to shaki™
I have set the message options to MQGMO_CONVERT.
can anyone help me to how to display the swedish characters properly?
Regards,
Kals |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jan 23, 2008 4:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Try setting the CCSID on the MQMD to 1208 or 1200 BEFORE getting the message.
If this fails set the CCSID on the MQManager object....
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kals |
Posted: Wed Jan 23, 2008 6:13 am Post subject: Byte array to string |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 4
|
Hi,
Thanks a lot, it works.
But when I am trying to convert Byte array to String, the swedish characters are getting converted to some symbols. Any idea?
piece of code: System.Text.Encoding.ASCII.GetString(
Kals |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jan 23, 2008 1:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Possibly because they do not map to ASCII 437 cp only to ASCII 850 cp ?? _________________ MQ & Broker admin |
|
Back to top |
|
 |
kals |
Posted: Wed Jan 23, 2008 9:52 pm Post subject: Binary array to String |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 4
|
Hi saper,
How to solve this?
Kals |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 25, 2008 1:28 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Don't use ASCII use UTF-8 ! or unicode ! _________________ MQ & Broker admin |
|
Back to top |
|
 |
|