Skip to Content
avatar image
Former Member

Mail-to-file scenario ...

Hello,

I've implemented mail-to-file scenario and it works well except one thing. If the mail received by XI contains some special characters the characters are replaced by some others.

For example:

Email body contains text : Na Strži

Mail adapter creates payload which contains text : Na Str=BEi

or

Email body contains a few <new line> characters but they all are replaced by =20

I think that it's problem on side of Mail Adapter but I don't know whether some way to avoid it exists.

Could you advice to me, please? Thank you!

Best regards,

Zbynek

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 18, 2008 at 08:29 AM

    Hi,

    hope this thread is helpful for you:

    [Mail] Wrong special characters

    Regards

    Patrick

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 18, 2008 at 08:42 AM

    What is the encoding that u are using?

    it should be ISO-8859-1

    Edited by: Progirl Progirl on Jul 18, 2008 2:14 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 18, 2008 at 08:49 AM

    Hi Zbynek,

    In your source message structure I suppose you are using the standard structure from the namespace http://sap.com/xi/XI/Mail/30. If not you can download it from SAP service marketplace. See [this link|http://www.riyaz.net/blog/index.php/2008/02/27/xipi-configuring-the-sender-mail-adapter/] for configuration steps.

    Specify the correct value under the Content_Type node of the message type Mail e.g. something like below -

    ......
    <Content_Type>text/plain;charset="US-ASCII"</Content_Type>
    ......

    The content type is dependent upon the content you wish to send and charset will correspond to character set/encoding etc.

    Hope this helps.

    Regards,

    Riyaz

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2008 at 12:18 PM

    So the problem is solved.

    I configured my Sender Mail Adapter to generate Base64 encoded payload. When I wanted to process the payload, at first I carried out Base64 decoding. It worked fine but the decoded payload contained the wrong characters as I mentioned. Then I found out that the payload is Quoted-Printable encoded too so I had to ensure QP decoding after Base64 decoding. So it seems the QP encoding is used automatically.

    Anyway thanks a lot you all!

    Regards

    Zbynek

    Add comment
    10|10000 characters needed characters exceeded