Skip to Content
0
Former Member
Mar 28, 2006 at 01:22 PM

XI30: Escape characters codes on message mappings

78 Views

Hi,

I have to generate and send an xml file (encoding utf-8)that contains escape characters code.

I mean, I need to put for example § instead of '§' or ~ instead of ~.

Let suppose XI receives an xml that contains these strange characters and let suppose that XI have to change them (in string fields obviously) into their corresponding codes.

I made in the message mapping an user-defined function like this:

+

StringBuffer sb = new StringBuffer();

int n = a.length();

for (int i = 0; i and it does not convert properly the entire code.

So, the displayed result on xml-target is not what I expected to see (§ ???).

Is there anyone of you, guys, that knows a trick to bypass this problem and finally generate an xml target file containing escape characters codes?

thanks in advance

Alex