Skip to Content

handle PI sender binary text

Customer send text file by AS2, but PI can't parse Chinese characters.

I wrote some Java code, find out the text file is GB2312.

I have tried very hard to parse the text file with modules, but failed

AF_Modules/TextCodepageConversionBean

AF_Modules/MessageTransformBean


I convert the file to UTF-8 and PI can parse it.

But the customer don't want to use UTF-8 format.😠

Do I have to write a module?

thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Posted on Dec 30, 2015 at 02:22 AM

    add localejbs/AF_Modules/TextCodepageConversionBean, no luck.


    af.png (10.5 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 29, 2015 at 01:46 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 29, 2015 at 01:53 PM

    Hello Shen,

    Try this encoding-GB18030 in the module beans

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 29, 2015 at 01:59 PM

    Hi Shen,

    You need a java mapping or adapter module to convert it to a format so that it can be further used in message mapping. In case you are going for java mapping do not use an FCC, use dummy SI.

    Regards

    Anupam

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 29, 2015 at 02:28 PM

    Internally, SAP PI always use UTF-8, so your customer has to accept this. After processing the file, you can transform it back to GB2312 or any other useful codepage.

    Add comment
    10|10000 characters needed characters exceeded