cancel
Showing results for 
Search instead for 
Did you mean: 

UTF-16 LE BOM to UTF-16/UTF-8 Character encoding in SAP PI / PO

former_member190681
Active Participant
View Entire Topic
stefan_grube
Active Contributor
0 Kudos

Do you have an XML file? Then do not use the TextCodepageConversionBean as this is intended for plain text files only. For XML files use the XMLAnonimyzerBean.

Another approach is using an XSLT mapping instead of adapter modules:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output encoding="UFT-8" indent="no" method="xml"/> <xsl:preserve-space elements="*"/> <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet>


former_member190681
Active Participant
0 Kudos

HI Stefan,

Thank you for your reply, but it is flat file to flat file, passthrogh integration(SFTP to SFTP).

Thanks & Regards,

Kiran Polani

stefan_grube
Active Contributor
0 Kudos

I was confused because you assigned ContentType as UTF-8.

In my opinion, it should work as you did, only the BOM should be removed somehow.
Did you check with help of a hex editor that the incoming file is UTF-16 and the outgoing file is UTF-8?

former_member190681
Active Participant
0 Kudos

issue resolved, earlier i was used convert in parametername, i changed to mode it is working as required.