Writing emojis to Discord backend converts to ascii
Szeraax opened this issue · comments
My case
I've created an example function that takes a reaction name and sends it back as text to the channel.
Desired Behavior
Emoji's output to utf-8 charset:
Current Behavior
Any emojis in output get converted to ascii
Possible Solution
Replace:
with:
$Params['ContentType'] = 'application/json;charset=utf-8'
This seems similar to the Teams backend solution:
Steps to Reproduce (for bugs)
Write-Output "Emoji: ❗"
Context
I am trying to have non-ascii characters get preserved when they get posted to Discord
Your Environment
- Module version used: latest
- Operating System and PowerShell version: Posh 7.1 on windows 10