webMethods

webMethods

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
Expand all | Collapse all

services Create file in UTF8 without BOM encoding

  • 1.  services Create file in UTF8 without BOM encoding

    Posted Sun December 04, 2016 02:33 AM

    Hi,

    I had a requirement in which i am convrting the UTF-BOM bytes to string and from the string I need to convert or remove the UTF-BOM to UTF8. Could any one can help me in writing the java service or paste the code.

    And I used the ignoreBOMChars to true while converting bytesToString but still it is not removing the BOM chars in the string

    Thanks
    Raj


    #webMethods
    #Integration-Server-and-ESB
    #Managed-File-Transfer


  • 2.  RE: services Create file in UTF8 without BOM encoding

    Posted Sun December 04, 2016 10:01 AM

    There are services in WmPublic that fits your requirements. Look for string and utils folder. Refer built-in services guide.

    Also review my comments at Create file in UTF8 with BOM encoding - webMethods - Software AG Tech Community & Forums


    #webMethods
    #Managed-File-Transfer
    #Integration-Server-and-ESB


  • 3.  RE: services Create file in UTF8 without BOM encoding

    Posted Mon December 05, 2016 04:35 AM

    Hello Mahesh,

    Thanks for the reply the link says it converts to UTF-8-BOM,But my requirement is to remove BOM chars and make it as UTF-8.

    And coming to inbuilt service bytesToString it is not working when i made removeBomChars To true.

    Thanks
    Raj


    #webMethods
    #Managed-File-Transfer
    #Integration-Server-and-ESB


  • 4.  RE: services Create file in UTF8 without BOM encoding

    Posted Mon December 05, 2016 10:03 AM

    We might have to write a similar service that does your job.

    Most importantly if you are sure that OOTB services are not working as expected raise a incident against SAG to get further consultation.

    Meanwhile pass on your working sample package with inputs and expected outputs. I can have a look at it.


    #Integration-Server-and-ESB
    #webMethods
    #Managed-File-Transfer


  • 5.  RE: services Create file in UTF8 without BOM encoding

    Posted Mon December 05, 2016 11:27 AM

    Hi,

    Attahed the sample file and the package to test the file length should come as 0 after removing the BOM chars.Could you please check and help in creating the custom service to remove the BOM chars and get the output length as 0 as it is an encrypted file pgp

    Thanks
    Raj
    ACTION.csv.zip (686 Bytes)
    Samplepkg.zip (5.38 KB)


    #Managed-File-Transfer
    #webMethods
    #Integration-Server-and-ESB