on 05-04-2012 3:54 PM
Hi,
I am getting an XML file which was encoded with UTF-8.
In my file sender channel, i do specify the filetype as text and encoding as UTF-8.
But then PI message did not pick up the & symbol and was not able to recognize it.
If the xml file was encoded with UTF-8, I would assume PI should pick it up.
The only proof that i got is that the file is encoded with utf-8 is by looking at the tag
I am also surprised that PI did not throw any error, it is just when we looked into the adapter engine payload, the xml was not recognized at this place.
<?xml version="1.0" encoding="UTF-8" ?>
Hi AnandhaKrishnan,
If you want to deal with special characters you have two ways with CDATA section like Baskar mentioned above or escaping the char with its corresponding escaping character, & must be substituted with &
Another character that you could have problem are
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
& is a special character reserved in xml. It is reserved to indicate the beginining of character/entity references like ' So & must be represented as its entity reference & That means & should be replaced with &
refer this standard link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Open your source XML in xml editior and validate it. it looks your XML document not valid.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.