Logic App XML decoding error

clouddataquest 91 Reputation points
2023-02-14T10:52:48.03+00:00

Hello,

when i try to move a xml file like :

<?xml version="1.0" encoding="ISO-8859-1"?>
<Data>
 <Straße>ABCStraße</Straße>
</Data>

with an logic app like this: User's image

the file doesnt show the "ß" anymore. Can you please help me. Thank you

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-02-15T06:38:59.12+00:00

    [@clouddataquest ] Thanks for reaching out. As per the screenshot looks like you are using the Get file content using Path and then using Create File action to create the file in azure storage file share. Please confirm if my understanding is correct.

    I tested the same at my end using consumption logic app and I didn't face the same issue as you have mentioned.

    Can you please confirm if you have selected Yes for Infer Content Type, so the connector takes care of what your file content type is. Please validate if the configuration is same as below.

    User's image

    In case if you still observe the same issue then please share your workflow configuration and make sure that the file content is same while creating the file and not changed in your workflow.

    Update:

    Thank you for the offline discussion. As we were using the Infer Content Type as Yes and your file type is xml then logic app treated the content-type as text/xml and that is the reason the content was not encoded properly. When we select the Infer Content Type as No then logic app will tread the content as application/octet-stream content-type (used for unknown binary files) and therefore it encodes the content as per the actual content and doesn't change.

    For more details, please refer to this document.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.