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 Index » WebSphere Message Broker (ACE) Support » Error dude to character difference between “-“ & “ – “.

Post new topic  Reply to topic
 Error dude to character difference between “-“ & “ – “. « View previous topic :: View next topic » 
Author Message
punky
PostPosted: Wed Jul 18, 2012 9:10 pm    Post subject: Error dude to character difference between “-“ & “ – “. Reply with quote

Apprentice

Joined: 26 May 2011
Posts: 44
Location: India

Hi Team,

I had an IDOC which was to be delivered to legacy.
The Idoc passed through successfully from our flow but raised an error at the legacy side.

The explanation given to us is there is a difference in hypen “-“ & “ – “.
and the second one being passed is a special character and is not a part of standard UTF8 character set. They use java to process this message at there side.

At our side we are using CCSID 1208.

Please help!!!

Regards,
Punky
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Jul 18, 2012 9:14 pm    Post subject: Re: Error dude to character difference between “-“ & “ – Reply with quote

Grand High Poobah

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

punky wrote:
Hi Team,

I had an IDOC which was to be delivered to legacy.
The Idoc passed through successfully from our flow but raised an error at the legacy side.

The explanation given to us is there is a difference in hypen “-“ & “ – “.
and the second one being passed is a special character and is not a part of standard UTF8 character set. They use java to process this message at there side.

At our side we are using CCSID 1208.

Please help!!!

Regards,
Punky


Interpretation error. The graphical dash is part of the UTF-8 set. It may just not be part of the CCSID used by SAP, especially if it is not yet a unicode CCSID...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
punky
PostPosted: Wed Jul 18, 2012 10:04 pm    Post subject: Reply with quote

Apprentice

Joined: 26 May 2011
Posts: 44
Location: India

Hi fjb_saper/All,

was just looking for various forms of hypen and dashes:

Symbol name/ Symbol/ MS word creation method

Regular Hyphen - (key next to the digit 0)
Optional Hyphen ¬ (Control Key + Regular Hyphen Key)
Non breaking Hyphen (Control Key + Shift Key + the Regular Hyphen Key)
En Dash – (Control Key + the minus Key in the numeric Key pad)
Em Dash — (Control Key + Alt Key + minus Key in Numeric Key Pad)

So all might not been interpreted by the java interpreter used at the legacy end.

The symbol looks quite similar to En dash.

I have few doubts here:
1. It is processed in my WMB flow, so that means my code page has this symbol.
2. Is it a part of UTF8 or not as the reason given by the legacy team.
3. This problem was rectified by removing the En Dash and replacing with hypen and sending the data.
4 What can be an alternative solution if I want to process the En Dash at legacy side.

Regards,
Punky
Back to top
View user's profile Send private message Visit poster's website
rekarm01
PostPosted: Thu Jul 19, 2012 12:11 am    Post subject: Re: Error dude to character difference between “-“ & “ – Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

punky wrote:
The explanation given to us is there is a difference in hypen “-“ & “ – “.

Those aren't ASCII quotation marks either. The second string contains an "EN DASH", and it is a Unicode character (U+2013).

punky wrote:
What can be an alternative solution if I want to process the En Dash at legacy side.

The legacy app is trying to convert the string from UTF-8 to some other ccsid; it can either leave it unconverted, or it can select a target ccsid that includes the "EN DASH" character, such as ccsid=1252 (MS Windows, Latin-1).
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jul 19, 2012 4:49 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

This sentence does not make sense:
Quote:
the second one being passed is a special character and is not a part of standard UTF8 character set

UTF-8 is an encoding of Unicode. Therefore it can represent any Unicode character. It would be impossible to find a character ( special or not ) that is not in the UTF-8 character set. The same applies to UTF-16 and UTF-32.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error dude to character difference between “-“ & “ – “.
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.