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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 29, 2015 at 01:46 PM
    Add a 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 a 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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.