Business Connector encoding

I use to call a BAPI.

I’m getting the data, apply some transformation and send a XML file to a provider to load the data into destination system.

Sometimes I got some errors from provider: Invalid byte 1 of 1-byte UTF-8 sequence.

I think this is because data BC retrieves from SAP is not UTF.

My questions:

It’s possibile to control encoding using ?

Is there a configuration with BC or similar?

How to find out what encoding BC is using?

thanx in advance

yes, there is a way to set the coding in SAP. Set it to UTF-8. Use WE20 and in the Partner Definition, there is a field where this is specified.