on 10-05-2011 6:53 PM
Hi Experts,
Need your suggestions on how to handle the special character Ø in the payload coming from ecc. which means i need to know how to handle the character Ø coming from idoc.
Appreciate your quick response on this.
Thanks & Regards,
Ranganath.
Need your suggestions on how to handle the special character Ø in the payload coming from ecc. which means i need to know how to handle the character Ø coming from idoc.
What do you want to do and why?
This is a valid character and there is in principe no need to do anything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Anupam/Stefan/santhosh,
Thanks a lot for your prompt replies.
We are facing issue while sending the char "Ø" to the target end. It is geting converted to Ãu02DC . So kindly can u seggest me how to pass on the same char "Ø" without getting interpreted to any char to the target end.
Awaiting your reply
Thanks & Regards,
Ranganath
We are facing issue while sending the char "Ø" to the target end. It is geting converted to Ãu02DC . So kindly can u seggest me how to pass on the same char "Ø" without getting interpreted to any char to the target end.
Read this:
Hi Ranganath,
Are you receiving any errors in PI message mapping due to presence of this symbol? Then you need to ask the sender to stop sending this symbol.
If you are not receiving any errors (most probably you should not receive any errors) and you only want to remove the character to flow from source to target then use the following UDF in your message mapping
String removeChars(String s, Container container)
{
try
{
int i,l;
l=s.length();
String a="";
for(i=0;i<l;++i)
{
if(s.charAt(i)==216 || s.charAt(i)==248)
{
continue;
}
a=a+s.charAt(i);
}
s=a;
}
catch(Exception e)
{
return s;
}
return s;
}
If you want to replace this character by another String (say "B")
please use the UDF below
public static String replaceChars(String s,Container container)
{
try
{
int i,l;
String replacement_string="B";
l=s.length();
String a="";
for(i=0;i<l;++i)
{
if(s.charAt(i)==216 || s.charAt(i)==248)
{
a=a+replacement_string;
continue;
}
a=a+s.charAt(i);
}
s=a;
}
catch(Exception e)
{
return s;
}
return s;
}
regards
Anupam
Edited by: anupamsap on Oct 5, 2011 8:37 PM
Edited by: anupamsap on Oct 6, 2011 8:33 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.