on 04-04-2006 11:58 PM
I am writing a rfc response to a file after mapping to a specific format as xml file.
I am getting rfc response in xi with & and > or < symbols and when they are written to a file, it gets replaced by > or &. What sould be done ??
Hi Thilothama,
I may not be able to give u a solution. But some direction...
I think it has sth do with XML. If i remember it right, it is the XML way treating the spl chars.
Something could be done in file content conversion parameters.
Hope these will help.
-Naveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thilothama,
The rfc response is valid, as &,<,> are not allowed in xml directly. They are represented by > < and &. However this is only within the xml file. I think they should automatically get converted to & , < and > during mapping!
Can you please detail on how you are mapping the rfc to the file. Also is the file in xml format?
Regards,
Harsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thilothama,
As Jithesh said, try using various encoding techniques in ur adapter channel. <b>UTF-8</b> should do the conversion just fine. In case that doesn't work out, try using <b>ISO-8859-1</b>. You can try even <b>ISO-8859-16</b>.
Also have a look at this thread..
Here, Ricardo has overcome a similar problem.
Hope this helps you!
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thilothama ,
While mapping your rfc response try to use a user defined function (if it is graphical mapping)which will replace symbols like > or > & for that particular field . You can for e.g write this small piece of code .
String a = <Your Actual Field Content> ;
a.replaceAll("&","&");
a.replaceAll("<","<");
a.replaceAll(">",">");
return a;
I hope this helps you out .
Thanks & Regards,
Ashish Sharma .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you have used Graphical mapping XI should take care of those special characters. but in case of Java mapping you have to take care of special characters. <,>,& and ' are treated as special charaters in XML. So If you are forming XML then you need to write replace "&" with "&" and similarly "<" with "<" , ">" with ">", "'" with "'".
-Kavita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this conversion can be avoided by using a encoding scehme ion ur adapter communication channel.try giving ur <b>basic type as text and the encoding type as UTF-8</b>.u can also try using other file encoding schemes like iso 8859-1
hope this helps u
regards
jithesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.