Author |
Message
|
punky |
Posted: Wed Jul 18, 2012 9:10 pm Post subject: Error dude to character difference between “-“ & “ – “. |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Jul 18, 2012 9:14 pm Post subject: Re: Error dude to character difference between “-“ & “ – |
|
|
 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 |
|
 |
punky |
Posted: Wed Jul 18, 2012 10:04 pm Post subject: |
|
|
 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 |
|
 |
rekarm01 |
Posted: Thu Jul 19, 2012 12:11 am Post subject: Re: Error dude to character difference between “-“ & “ – |
|
|
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 |
|
 |
kimbert |
Posted: Thu Jul 19, 2012 4:49 am Post subject: |
|
|
 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 |
|
 |
|