Forum Archive

How to remove accents

mgracitelli

I built a workflow to translate from Portuguese to English, using google translate.
It is working fine for languages without accent (ie, from English to portuguese).
In summary, I created this:
1) replace empty space between letters with %20 and create a variable [text].
2) open the in app browser with the URL https://translate.google.com/#pt/en/[text]

But Portuguese has several accents and I need a simple way to remove all of them and replace with the same letter, but without accent.
Example:
Replace é to e
Replace à to a
Etc

Anyone has some idea on how to do that?
Is there a regular expression method to handle this?
Or do I need to create a find and replace workflow for each of the words?

Thanks

omz

Instead of manually replacing spaces with %20 and removing accents, you can just use the URL Escape action. Here's a working example:

http://www.editorial-workflows.com/workflow/5906488551800832/bDlkYWOm0qE

This doesn't remove the accents, but it converts them to a percent-encoded form that can be used in the URL.

mgracitelli

Perfect! Thank you!