Azure Logic App sftp create file bad encoding

Carlos Barroso 50 Reputation points


Here a very short sample :

I create a variable "Clément", upload it in sftp server, send it by email as attachment.

In the ftp server the file contain "Clément".

In the email the file contain "Clément".

User's image

NB: For email i found a workaround by encoding "Clément" as base64 string (from windows-1552 to iso-8859-1) but it doesnt work for sftp create file

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,829 questions
{count} votes

Accepted answer
  1. Sonny Gillissen 3,271 Reputation points

    Hi @Carlos Barroso

    Thanks for reaching out on Microsoft Q&A!

    Have you tried wrapping your variable in the binary() function, like this:


    Logic Apps assumes all content is UTF-8, however your SFTP-server may not accept UTF-8 characters to be posted in the body. With the binary() function it will wrap your UTF-8 content in a byte array, which may solve your issue.

    When you think my answer is helpful, please click "Accept answer" and upvote it. Feel free to drop additional queries in the comments.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful