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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Unable to convert unicode (Big5) String to XML to Document

    Posted 09/27/02 02:13 AM

    While attempting to parse XML file embedded with
    Chinese characters I have difficulties using
    stringToDocument to produce a node that is
    recognized by recordToDocument. Any idea?

    The steps I used to parse the XML are�

    getFile

    bytesToString

    stringToDocument

    getDocumentType


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Unable to convert unicode (Big5) String to XML to Document

    Posted 09/27/02 09:55 AM

    The best bet is to do the following sequence:

    getFile (as stream)

    stringToDocument (passing stream)

    getDocumentType

    Unless you pass the encoding to the bytesToString service, the default encoding of the VM is used for interpreting the bytes. This is most likely the issue that you’re having.

    You’ll need to ensure that your XML document has the proper XML prologue encoding set e.g.

    <?xml version="1.0" encoding="UTF-16"?>
    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Unable to convert unicode (Big5) String to XML to Document

    Posted 10/01/02 06:06 AM

    Thanks. Big5 and GB2312 are not supported. I wrote
    a utility to convert Big5 encoded XML to Unicode XML and now I can parse the XML fine.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods