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.  Accented Characters in convertToValues

    Posted Wed November 22, 2006 02:10 AM

    I occasionally receive text files (for my file polling service) that contains accented characters (e.g. ü).
    This throws out the pub.flatFile:convertToValues service with an “Server Error: sun.io.MalformedInputException”, even though I’ve specified the encoding to be UTF-8 (which should also be the default).
    Is this a bug?


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


  • 2.  RE: Accented Characters in convertToValues

    Posted Wed November 22, 2006 08:39 AM

    Hi serdar,

    I have faced the same case in one of my interface. What i did is , I wrote a java service isASCII() which takes the string and search for any illegal character(if ch>128). You can write this simple java service and check.
    One more alternative i have found is use encoding as “Cp1252”. I tried both and they worked. But I have chosen the first one.


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


  • 3.  RE: Accented Characters in convertToValues

    Posted Wed November 22, 2006 11:00 PM

    Thanks for your response Balaram. I guess it is possible to do as you say and have a java service, but it’ll need to be checking each character, which could pose to be quite slow. Some of our CSVs can become large (MBs) so for now the CP1252 option is looking better. Thanks again.


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


  • 4.  RE: Accented Characters in convertToValues

    Posted Tue December 05, 2006 12:17 PM

    ISO-8859 or UTF-8 are better encodings, as they cover a larger set of characters.

    HTH
    Bhavani Shankar


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