We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to send a message with Cyrillic characters. All characters are replaced with ? in Slack.
Apparently, this is because the default encoding in PowerShell Core nowadays is UTF-8, but the module encodes the text with iso-8859-1.
The text was updated successfully, but these errors were encountered:
PSSlack/PSSlack/Public/Send-SlackMessage.ps1
Line 376 in b8ff0bd
Appending the option -ContentType "application/json; charset=utf-8" may fix this issue.
-ContentType "application/json; charset=utf-8"
Invoke-RestMethod -Method Post -Uri "https://hooks.slack.com/services/[snip]" -Body "{'text': 'Test message / テストメッセージ / Тестовое сообщение'}" -ContentType "application/json; charset=utf-8"
worked in PowerShell 6 in Ubuntu and 5 in Windows 10 (chcp 932).
Sorry, something went wrong.
No branches or pull requests
Trying to send a message with Cyrillic characters. All characters are replaced with ? in Slack.
Apparently, this is because the default encoding in PowerShell Core nowadays is UTF-8, but the module encodes the text with iso-8859-1.
The text was updated successfully, but these errors were encountered: