Hello, I am trying to convert text I retrieve from a invoicing tool. The text does contain the german umlauts (ä, ö, ü). And the data is formatted as HTML (i.e. ä = ä / ü = ü etc.).
I used the Zapier Format/Convert HTML to Markdown, but it does convert the umlauts not correctly: &aauml; = a / ü = u.
Is there a better way to convert HTML to text with umlauts?
Thanks :-)
Page 1 / 1
I’m not sure if this is the easiest or the best solution but you could add a Python “Code Step” as an Action.
You could then replace the characters via the following formula:
where you would need to declare all characters you want to replace. You should then declare “firstname” as input and your output will the the correct string.
Pretty sure there might be a smarter way of doing this but this will get the job done!
@MarijnVerdult Thanks for your support. But the result is an error message saying:
How it works is that you substitute everything between < and > with “” (i.e. nothing). The key here is .*?; which is the RegEx expression for lazy, so to say everything that matches it. Without the question mark it would look for the first < and the last > and substitutes everything in-between.
@MarijnVerdult Great, works perfect! Thank you so much for your help!!!