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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get rid of acce...
Power Automate
Unanswered

How to get rid of accents but keep the letters from a string

(0) ShareShare
ReportReport
Posted on by 72

I'm looking for a universal way to replace any known latin accented letters with their not accented counterparts.

 

For example the string  'èéêë' would become 'eeee'

 

Is there any way to do this?

Categories:
I have the same question (0)
  • Verified answer
    Caspar_Rubin Profile Picture
    831 on at

    Hey,

     

    not sure if there is a "universal" way and maybe there is a easier way than this but it looks like you'll have to use the replace() function multiple times...

    For example:

     

    replace(replace(YOURSTRING,'è','e'),'é','e')

     

    PS: There is a very well written guide on the replace() function by Bhawana Rathore here: Power Automate Replace + 21 Examples - EnjoySharePoint

  • Samuel_PP Profile Picture
    72 on at

    What I ended up doing is a Compose with an array of objects, each containing an accent and its base letter with data I found online like this:

    [

    {

    "accent":"è",

    "replacement":"e"

    },...

    ]

     

    Then I created a variable "text" containing my string and a "dummy" variable containing an empty string because self reference while updating a variable is not allowed.

     

    Then I did an Apply each where I used Set variable to update my dummy variable with the formula replace(variable("text"),item["accent"], item["replacement"]) and within the same Apply each I used Set variable to set the value of "text" to be the value of "dummy"

     

    With its 192 elements it is very slow but it works.

  • Caspar_Rubin Profile Picture
    831 on at

    hey, sounds actually very clever. This way it's possible to add additional characters very easily without having to always go into the expressions editor...

    thanks for letting us know.

  • Verified answer
    Samuel_PP Profile Picture
    72 on at

    I was curious wether your solution, putting all the replace in a single action, would help with the delay and boy does it make a difference, from over 2 minutes to 0 seconds. So I built this utility tool, just change the object in the javascript using the same schema and you will get the formula printed on screen. that way you can quickly update the list of characters to replace and have the speed of putting it all in a single operation.

     

    Here's the tool: Replace accent function generator (codepen.io)

  • chico Profile Picture
    638 on at

    this is one fo those posts that needs a trophy icon, in addition to the thumbs up!

  • nisuomi Profile Picture
    5 on at

    Thank you! This saved my time (and maybe a life).

  • chico Profile Picture
    638 on at

    I hope this messages reaches.
    Earlier this year I came accross this post and it blew my mind.
    It was a huge help to have copied that BIG piece of nested replace functions and we instantly put it to good use dealing with international new hire flows.

    Sadly, the formula was in a flow that got accidentally deleted by another on the team....
    and the codepen.io page seems to be tossing errors now..


    Does anyone have that big formula saved somewhere to re-share???

  • chico Profile Picture
    638 on at

    meanwhile, 
    found this one to help with common Spanish characters.

     

     

    replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     replace(
     outputs('FullName'),
     'Á', 'A'
     ),
     'á', 'a'
     ),
     'É', 'E'
     ),
     'é', 'e'
     ),
     'Í', 'I'
     ),
     'í', 'i'
     ),
     'Ó', 'O'
     ),
     'ó', 'o'
     ),
     'Ú', 'U'
     ),
     'ú', 'u'
     ),
     'Ñ', 'N'
     ),
     'ñ', 'n'
    )

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard