Set-UDClipboard not copy special characters

Hi,
I am trying to create a button that copies a received event. This works correctly, but when the copied text has a special character, the action does not work. I’ve tried escaping the characters but it doesn’t work. Am I doing something wrong?

In the example, Frozen yoghurt and Ice cream not work. Other yes…
Example:
$Columns = @(
New-UDTableColumn -Property Dessert -Title Dessert -Render {
New-UDButton -Id “btn$($EventData.Dessert)” -Text “Click for Dessert!” -OnClick { Set-UDClipboard -Data $($EventData.Dessert) -toastOnSuccess -toastOnError }
}
New-UDTableColumn -Property Calories -Title Calories
New-UDTableColumn -Property Fat -Title Fat
New-UDTableColumn -Property Carbs -Title Carbs
New-UDTableColumn -Property Protein -Title Protein
)

$Data = @(
@{Dessert = ‘# Frozen yoghurt’; Calories = 1; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = ‘\Ice cream sandwich’; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = ‘Eclair’; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = ‘Cupcake’; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
@{Dessert = ‘Gingerbread’; Calories = 200; Fat = 6.0; Carbs = 24; Protein = 4.0}
)

New-UDTable -Data $Data -Columns $Columns -Sort -Export

Thanks!!!

Product: PowerShell Universal
Version: 1.4.6

I’ve opened an issue to investigate this during out v2.9 milestone. It sounds like a bug.

Thank you very much Adam!