cancel
Showing results for 
Search instead for 
Did you mean: 

German umlaut in idoc to file scenario

philipp_wagner2
Explorer
0 Kudos

Hi,

in our scenario we send MATMAS idocs to XI, map them and create a file using file adapter.

Settings in file receiver communication channel: file type = text and file encoding = UTF8. I also tried file encoding = ISO-8859-1 - both with the same result:

German umlauts are not converted. E.g. the material short text "Hängematte" is shown as "Hängematte" in the created file. The receiving system errors out. Acceptable would be

"H& #228;ngematte"

. (of course without the blank but I have to add it herer else the forum would replace this by "ä" )

Any help is appreciated.

Regards,

Philipp

Accepted Solutions (0)

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

In PI there is no function to transform valid characters, like ä, into escape sequence. How have to do this in mapping, as shweta khade has already proposed.

Regards

Stefan

philipp_wagner2
Explorer
0 Kudos

Hi,

I wrote a user defined function to replace the umlauts by escape sequences, but XI replaces the ampersand by &am p; --> Ä &#196 will become &am p;#196;

Any ideas how to avoid this?

Thanks,

Philipp

Former Member
0 Kudos

hey

change the file type to binary.

thanx

ahmad

Former Member
0 Kudos

Hi,

Follow the steps:-

1>In your adapter -> Set File type to TEXT -> use Encoding and provide ISO-8859-1 (http://en.wikipedia.org/wiki/ISO/IEC_8859-1)

To know more about other encoding standards refer -

http://en.wikipedia.org/wiki/Character_encoding

2>file type==>binary

Regards,

AshwinM

Reward If helpful

Former Member
0 Kudos

Hi,

You can convert this text in message mapping on material text field using Standard String functions like ReplaceString....etc...

In that u can specify which character u want to replace.

Otherwise u can also write a cutom java code i.e UDF for this.