cancel
Showing results for 
Search instead for 
Did you mean: 

Sending EMail Attatchment with special characters

Former Member
0 Kudos

Hi,

I am sending an Email based on the data below: -

<?xml version="1.0" encoding="UTF-8" ?>

- <p3:Mail xmlns:p3="http://sap.com/xi/XI/Mail/30">

<Subject>Subject</Subject>

<From>XI@Notwokring.COM</From>

<To>Me</To>

<Content_Type>text/plain</Content_Type>

<Content_Disposition>attachment;filename=”MyFile.xml”</Content_Disposition>

<Content><TEST>Constant</TEST></Content>

</p3:Mail>

When I get the Email the data is

&#60;TEST&#62;Constant&#60;/TEST&#62;

Has anybode had this problem before.

Thanks

Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Special characters cannot be directly passed inside XML. You will have to use their Character Reference values.

So in your case, you should have your xml value as,

<Content>&#60;TEST&#62;Constant&#60;/TEST&#62;</Content>

All other character reference values for special characters, are available at the following link

http://www.bbsinc.com/iso8859.html

cheers

Sameer