cancel
Showing results for 
Search instead for 
Did you mean: 

message containing special char

Former Member
0 Kudos

I have implemented RFC to JDBC interface.

The database sends the characters "& # x 0" as a part of message.

e.g

<input>Data for testing & # x 0 </input>

When the message comes to XI, the message mapping failed.

I used the same data directly in the IR message mapping and XI threw an error saying " XML not well-formed"

Is there any way we can avoid this error ? When I looked into the xml standards, I found that whenever we use "&", it should be like "&amp;"

But in this case the database is not sending "amp;" with "&",

Is there any option to add "amp;" in the message ?

"& # x 0" chars are visible only when we try to get the content of the payload from the sxmb_moni transaction.

~Peeru

Accepted Solutions (1)

Accepted Solutions (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

we faced the same issue,

we solved it changing the enconding to UTF-8

Regards

Former Member
0 Kudos

Thanks Rodrigo.

How to use/change to the UTF-8 encoding method ?

Former Member
0 Kudos

Indrani,

Please check stefans solution in this thread:

If this not solve then please see this threads in which they are having the same issues:

Regards,

---Satish

stefan_grube
Active Contributor
0 Kudos

This will not help. "& # x 0 ;" is a representation of the ascii value zero ("NULL").

If have no idea, how to avoid this besides removing or changing with a Java mapping or adapter module.

Regards

Stefan

Former Member
0 Kudos

Can we fix this using module only ? I am not very comfortable with the Java mapping in XI

~Peeru ~

stefan_grube
Active Contributor
0 Kudos

In this thread is a Java mapping that should help you:

But maybe you first check out, why you have this hex 00 value in the database. Maybe you can clean the database entries and avoid the issue.

Regards

Stefan

Answers (0)