cancel
Showing results for 
Search instead for 
Did you mean: 

Umlauts(special character) conversion

Former Member
0 Kudos

Hi All

I have the requirement where I need to convert Umlauts(special characters in foreign language like Ü,Ö )to plain simple english like ue , oe.

I use the following code to do the conversion:

String specialChar[]={"Ä","Ö","ö","ü","ä","Ü","

",":",":"};

String htmlChar[]={"AE","OE","oe","ue","ae","UE","","",""};

for(int i=0;i);

}

This work fine while testing in Eclipse and the umlauts get converted to english alphabets.

However after importing to PI as an archive, it looks like :

String specialChar[]={"�","�","�","�","�","�","

",":",":"};

String htmlChar[]={"AE","OE","oe","ue","ae","UE","","",""};

for(int i=0;i);

}

And if we test it in Interface mapping,No conversion happens.

Can anyone tell me why it fails in PI and how to resolve this issue?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

how do you open the things you wrote:

String specialChar[]={"�","�","�","�","�","�","",":",":"};

Is this the *.java?

If so, don't mind it is like that in the frontend. Your mapping should work OK.

Regards Mario