cancel
Showing results for 
Search instead for 
Did you mean: 

Special Characters

Former Member
0 Kudos

Hi guys,

Can you please tell me how to handle special characters in Mapping.

Thanks

Sahil

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member187339
Active Contributor
0 Kudos

Hi,

Special characters can be handled through java udfs. But what is your specific requirement?

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Can you please share some sample UDFs to perform the translation.

We also have a similar requirement and would appreciate any help on this front.

Thanks and Regards

Salman

former_member187339
Active Contributor
0 Kudos

Hi,

A quick one will be this:

 

public String check(String node){
		node = node.replaceAll(" ","");
		node = node.replaceAll("[^a-zA-Z 0-9]+",""); 
		return node;
	}

Regards

Suraj

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

A solution would be to implement Java mapping. Wherein you convert the XML into a flat file then use XML escape characters in replacing the special characters. e.g replace & with & amp;

hope this helps,

Former Member
0 Kudos

Have a look at this blog

https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]