Skip to main content
Community site session details

Community site session details

Session Id : iM42u3Lg8U+l3ORYTh7UyF
Power Automate - Building Flows
Answered

base64ToString function has unexpected character in the output

Like (0) ShareShare
ReportReport
Posted on 8 Jul 2022 05:10:30 by

Hi Folks,

 

I'm trying to get the contents of an html file attachment using the function base64ToString. It provides me the output but has a special character "ďż˝" between all characters as below:

 

rbn_nue_0-1657256847686.png

 

When I tried decoding the same input content bytes from https://www.base64decode.org/ it provided me the accurate output. Could anyone help to get the right output from power automate?

 

Thank you. 

  • rbn_nue Profile Picture
    on 08 Jul 2022 at 06:48:26
    Re: base64ToString function has unexpected character in the output

    Hi @MarconettiMarco ,

     

    Thank you for the response. I had already tried this, it will only replace first occurrence of the character. Using apply to each did not make much difference as well. I used get file content (OneDrive) to solve the issue. 

     

    Thank you. 

  • Verified answer
    rbn_nue Profile Picture
    on 08 Jul 2022 at 06:46:21
    Re: base64ToString function has unexpected character in the output

    Hi,

     

    I used below workaround to solve the issue:

     

    • Save this html document as new file in OneDrive.
    • Use get file content (OneDrive) to get the html content inside - this provided accurate output.
    • Delete the file afterwards.

    Thank you. 

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 08 Jul 2022 at 06:09:46
    Re: base64ToString function has unexpected character in the output

    hello @rbn_nue ,

    please use the following expression in a "Compose" action:

     

    replace(outputs('Compose'),'ďż˝','')

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete