Skip to Content
0
Former Member
Dec 10, 2007 at 07:43 AM

Urgent, Help on conversion: xml to flat file

79 Views

Dear experts,

Here is the scenario, XML FILE ->XI-> JMS

In JMS recevier side, we use localejbs/AF_Modules/MessageTransformBean to convert xml to flat file.

Transform.Class: com.sap.aii.messaging.adapter.Conversion

Transform.ContentType: text/plain;charset=utf-8

xml.conversionType: SimpleXML2Plain

xml.fieldFixedLengths: 5,20,5,8

When input source xml file contents are non-unicode, it works fine.

But when the contents contain unicode characters such as Chinese word, it works but with wrong length in the output flat file. It seems xi treat one Chinese word length is 1. Actually, one chinese word should take 2 bytes.

My question is how to make XI handle unicode characters with correct lengths while conversing to flat file.

Thanks in advance.