Loading

File, FTP and SFTP Connectors | How to Use a Specific Encoding for the Write Operation

Data pubblicazione: Mar 2, 2024
Risoluzione

QUESTION 

The 'Default write encoding' is DEPRECATED in the File, FTP, and SFTP connectors. How can I use a specific encoding for the Write operation?

ANSWER

You can use the DataWeave transformation for a specific encoding before calling the Write operation.

For example:
%dw 2.0
output text/plain encoding="ISO-8859-1"
---
payload

User-added image

Note:
Set the proper MIME type ("text/plain" in the above example), and evaluate the usage of deferred and streaming directives if you're processing large files.
 

For Binary content such as an image or PDF, use the MIME type "application/octet-stream".

For all data formats supported by DataWeave, refer to https://docs.mulesoft.com/dataweave/2.4/dataweave-formats.

Numero articolo Knowledge

001119424

 
Caricamento
Salesforce Help | Article