IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  How to get Chinese characters in wM 6.0.1

    Posted Thu November 17, 2011 05:50 AM

    Dear Friends,

    Good day.
    We have received IDOC XML(with UAT-8) from SAP with Chines characters, when I convert the BizDocContentPart\Bytes to Strings with UTF-8 encoding, I am getting below characters instead of Chinese characters.
    这是一个ä¸*æ *文测试文本</

    My testing steps:
    1. getContentPart
    2. bytesToString
    3. savePipelineToFile (with .xml file)
    4. Open the xml file in IE
    5. I suppose to see the chines characters in IE, but I got above characters.

    Please update me if anything wrong on above steps and advise me how to get the Chines characters. Appreciate your earliest replay. thanks

    Regards
    Surendar.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: How to get Chinese characters in wM 6.0.1

    Posted Thu November 17, 2011 04:48 PM

    It is possible that SAP is using an encoding other than UTF-8. Check with that team to find out and use that in the bytesToString call.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: How to get Chinese characters in wM 6.0.1

    Posted Wed November 30, 2011 06:17 AM

    [FONT=Calibri]Dear Reamon,

    Thanks for your valuable advice. I will check with the SAP team and keep you updated.[/FONT]


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: How to get Chinese characters in wM 6.0.1

    Posted Thu December 01, 2011 11:28 AM

    Hi Reamon,

    As checked, SAP is sending the IDOC with UTF-8 only. we are using the JVM1.3
    Please see the attached screenshot of TN Content of IDOC and advice what went wrong. thank you very much


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: How to get Chinese characters in wM 6.0.1

    Posted Thu December 01, 2011 06:30 PM

    How does the doc content look in TN console?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: How to get Chinese characters in wM 6.0.1

    Posted Fri December 02, 2011 05:28 AM

    Hi Reamon,

    Good day.
    Please click the below link to view the screenshot of TN console.

    [URL]http://www.flickr.com/photos/71220513@N02/6439953115/sizes/l/in/photostream/[/URL]

    Actual IDOC with chinese chars:

    <PREQ_NO>1000001172</PREQ_NO>
    <PREQ_ITEM>1</PREQ_ITEM>
    <TEXT_ID>B01</TEXT_ID>
    <TEXT_FORM></TEXT_FORM>
    <TEXT_LINE>Item Text field 简体中文测试</TEXT_LINE>

    <TEXT_NAME>Item text (P)</TEXT_NAME>
    B01



    <PREQ_NO>1000001172</PREQ_NO>
    <PREQ_ITEM>1</PREQ_ITEM>
    <TEXT_ID>B05</TEXT_ID>
    <TEXT_FORM>
    </TEXT_FORM>
    <TEXT_LINE>testing for 简体中文测试</TEXT_LINE>

    <TEXT_NAME>Justification for Purchase (P)</TEXT_NAME>
    B05



    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 7.  RE: How to get Chinese characters in wM 6.0.1

    Posted Fri December 02, 2011 04:21 PM

    Seems the version saved in TN DB has wrong encoding already. You need to check the handling service that receive doc from SAP and before saving it to TN.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods