web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / base64ToString functio...
Power Automate
Answered

base64ToString function has unexpected character in the output

(0) ShareShare
ReportReport
Posted on 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. 

Categories:
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    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

  • Verified answer
    rbn_nue Profile Picture
    on at

    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. 

  • rbn_nue Profile Picture
    on at

    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. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard