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
0 Kudos

Hi Expert,

i am using SAP PO 7.5 single stack, i have integrated SFTP to SFTP passthroguh integration for files.

from source system i am getting UTF-16 LE BOM format, i need to convert from UTF-16/UTF-8, data is integrated properly but from Al11/SAP system not able to validate the file from their program.

Could you please help me how to handle this?

former_member190681
Active Participant
0 Kudos

hello experts,

one thing in logs after transformed content still i am unable to change content type as UTF-8. Still it is showing UTF-16LE, please suggest how to change content conversion for passthrough file integration?

Regards,

Kiran Polani

peter_wallner2
Active Contributor
0 Kudos

I don't know if you need an adapter module, try the advanced parameters on the SFTP channel: https://blogs.sap.com/2015/04/06/parameter-reference-for-sftp-advanced-mode/

former_member190681
Active Participant
0 Kudos

not worked for me.

former_member190681
Active Participant
0 Kudos

no one know about conversion from UTF-16LE BOM to UTF-16? what a pity

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.