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) SupportEncoding problem in Message Flow.

Post new topicReply to topic
Encoding problem in Message Flow. View previous topic :: View next topic
Author Message
gotiashvili
PostPosted: Mon Jun 02, 2008 11:01 pm Post subject: Encoding problem in Message Flow. Reply with quote

Newbie

Joined: 02 Apr 2008
Posts: 8

Hello,

I have message flow which is using Database node.

MQInput -> Database -> MQOutput

This database node is connected to MS SQL Server 2005 and executes stored procedure. This procedure returns answer in Georgian language: eg "ÞÅÄËÉ ÈÀÒÉÙÉÈ ÓÀÁÖÈÉÓ ÂÀÔÀÒÄÁÀ ÀÒ ÛÄÉÞËÄÁÀ" - (NOT UNICODE)

When message flow tries to write message in MQOutput node i have error and message is rolled back in to MQInpute node.

I have next error in eventviewer:

Event Type: Error
Event Source: WebSphere Broker v6006
Event Category: None
Event ID: 2136
Date: 6/2/2008
Time: 6:53:09 PM
User: N/A
Computer: RESEARCH_WMSRV1
Description:
( TestBroker.execGroup ) Source character ''d300'' in field ''64006f0063005f0064006100740065005f0069006e005f0064006f0063003e0032003000300038002d00300035002d00330030003c002f0064006f0063005f0064006100740065005f0069006e005f0064006f0063003e000a00200020003c0064006500700074005f006e006f003e0033003c002f0064006500700074005f006e006f003e000a00200020003c00700072006f0064005f00690064003e0034003c002f00700072006f0064005f00690064003e000a0020003c002f0041006400640044006f0063003e000a0020003c0052006500730070006f006e00730065003e000a00200020003c00530051004c00530054004100540045003e00340032003000300030003c002f00530051004c00530054004100540045003e000a00200020003c00530051004c0043004f00440045003e002d0031003c002f00530051004c0043004f00440045003e000a00200020003c00530051004c004500520052004f00520054004500580054003e005b004d006900630072006f0073006f00660074005d005b00530051004c0020004e0061007400690076006500200043006c00690065006e0074005d005b00530051004c0020005300650072007600650072005d00d300c400d300e100c900d3002000c800c000cd00e100c0002000cd00c000ca00cb00c400c100c900c0002000cd00cf00cb00c600c4003c002f00530051004c004500520052004f00520054004500580054003e000a00200020003c00530051004c004e00410054004900560045004500520052004f0052003e00350030003000300030003c002f00530051004c004e00410054004900560045004500520052004f0052003e000a00200020003c0052006500730070006f006e00730065004d006500730073006100670065003e005b004d006900630072006f0073006f00660074005d005b00530051004c0020004e0061007400690076006500200043006c00690065006e0074005d005b00530051004c0020005300650072007600650072005d00d300c400d300e100c900d3002000c800c000cd00e100c0002000cd00c000ca00cb00c400c100c900c0002000cd00cf00cb00c600c4003c002f0052006500730070006f006e00730065004d006500730073006100670065003e000a00200020003c0052006500730070006f006e007300650043006f00640065003e002d0031003c002f0052006500730070006f006e007300650043006f00640065003e000a0020003c002f0052006500730070006f006e00730065003e000a003c0052006500730070006f006e00730065002f003e003c002f0058004d004c0052006f006f0074003e00'' cannot be converted from unicode to codepage '437'.

The source character is an invalid code point within the given codepage.

Correct the application or message flow that generated the message to ensure that all data within the message can be represented in the target codepage.
Data:
0000: 33 00 36 00 38 00 34 00 3.6.8.4.
0008: 00 00 54 00 65 00 73 00 ..T.e.s.
0010: 74 00 42 00 72 00 6f 00 t.B.r.o.
0018: 6b 00 65 00 72 00 2e 00 k.e.r...
0020: 63 00 34 00 39 00 36 00 c.4.9.6.
0028: 33 00 37 00 37 00 33 00 3.7.7.3.
0030: 2d 00 31 00 37 00 30 00 -.1.7.0.
0038: 31 00 2d 00 30 00 30 00 1.-.0.0.
0040: 30 00 30 00 2d 00 30 00 0.0.-.0.
0048: 30 00 38 00 30 00 2d 00 0.8.0.-.
0050: 66 00 36 00 62 00 35 00 f.6.b.5.
0058: 31 00 61 00 38 00 65 00 1.a.8.e.
0060: 66 00 31 00 32 00 66 00 f.1.2.f.
0068: 00 00 46 00 3a 00 5c 00 ..F.:.\.
0070: 62 00 75 00 69 00 6c 00 b.u.i.l.
0078: 64 00 5c 00 53 00 36 00 d.\.S.6.
0080: 30 00 30 00 5f 00 50 00 0.0._.P.
0088: 5c 00 73 00 72 00 63 00 \.s.r.c.
0090: 5c 00 43 00 6f 00 6d 00 \.C.o.m.
0098: 6d 00 6f 00 6e 00 53 00 m.o.n.S.
00a0: 65 00 72 00 76 00 69 00 e.r.v.i.
00a8: 63 00 65 00 73 00 5c 00 c.e.s.\.
00b0: 49 00 6d 00 62 00 43 00 I.m.b.C.
00b8: 6f 00 6e 00 76 00 65 00 o.n.v.e.
00c0: 72 00 74 00 65 00 72 00 r.t.e.r.
00c8: 2e 00 63 00 70 00 70 00 ..c.p.p.
00d0: 00 00 33 00 31 00 32 00 ..3.1.2.
00d8: 00 00 49 00 6d 00 62 00 ..I.m.b.
00e0: 43 00 6f 00 6e 00 76 00 C.o.n.v.
00e8: 65 00 72 00 74 00 65 00 e.r.t.e.
00f0: 72 00 43 00 50 00 50 00 r.C.P.P.
00f8: 3a 00 3a 00 69 00 6e 00 :.:.i.n.
0100: 74 00 65 00 72 00 6e 00 t.e.r.n.
0108: 61 00 6c 00 46 00 72 00 a.l.F.r.
0110: 6f 00 6d 00 55 00 6e 00 o.m.U.n.
0118: 69 00 00 00 00 00 i.....


I don't understand why Message Broker writes "cannot be converted from unicode to codepage '437'" because I have no unicode characters in this message..

Can anyone help me resolving this problem ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 03, 2008 2:53 am Post subject: Reply with quote

Grand High Poobah

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

You have to understand a few things about CCSID.
First how are you storing the data in MSSQL (what CCSID/codepage is it in?)
Second how are you retrieving that data. I would imagine as a BLOB that you then need to transform to char specifying the CCSID. (Is the ccsid of the data (BLOB) stored in the DB?)
Finally having the data in the correct format for the broker to understand, you need to know that the broker's internal representation is Unicode (ccsid 1200). This means that not all characters are convertible to a CCSID like 437. Try sending the message in UTF-8 or CCSID 1208...

Enjoy
_________________
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) SupportEncoding problem in Message Flow.
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.