• Yash Agarwal

Working with Diacritical marks and Characters for adaptive cards with Outlook and Power Automate

In this #PowerShot, I will show you how to fix the issue when you are working with special characters and diacritical marks for different languages on Adaptive Cards in Outlook with Power Automate. The problem is, when you have a text string that contains any diacritical marks or characters, those get converted to "?". We will take a look at a simple fix to resolve this issue.


Let's Get Started!


You can create an adaptive card from the adaptive cards designer portal here.


Once the card is created and sent in an email via Power Automate, the special characters/ diacritical marks based on the language and alphabet if any, get converted to "?".


For example, I try to use the text "Hej! Klicka på knappen för att markera närvaro." to add ask the user to click the button to mark attendance in the Swedish language on the actionable message and as shown in the screenshot, a question mark appears at the place of the special characters:


Flow Action:

Actual Actionable Message

Fix


A fix or resolution to the above problem is to include a text with the diacritical marks on the subject of the email itself. This will ensure that all such text is in the actionable message is rendered appropriately.


Flow Action

Here, I have added the text "Hej! Svara på kortet nedan" in the subject of the email asking the user to respond to the card.


Fixed Actionable Message

In the actionable email, the subject of the email and the adaptive card, properly render the text along with all the diacritical marks intact.

In this post, we saw how we can fix the special character replaced with question mark issue while working with Adaptive Cards in Outlook using Power Automate. This is a simple fix to get through to pass special characters on a string (can be handy while working with different languages).


Checkout my previous post on adaptive cards and learn how to implement multi line approvals with Outlook, Adaptive Cards and Power Automate here.


I hope you found this interesting and it helped you. Thank you for reading.

Recent Posts

See All

Export Planner data to Excel using Power Automate

In this #PowerShot, I will share a flow setup that can be used to export tasks related data from a planner plan to Excel. This includes data like the categories applied to a task, notes on the task, c