poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Update TeamsBackend.ps1 #198

Closed joakimkarlbom closed 4 years ago

joakimkarlbom commented 4 years ago

changed ContentType = 'application/json' to ContentType = 'application/json;charset=utf-8' in the REST API params for ensuring Unicode to fix problems with non-latin characters in channel respones.

Motivation and Context

It solves problems with encoding non-latin characters in Teams channel responses

How Has This Been Tested?

I have tested this by doing channel responses with my code with desired result.

Screenshots (if appropriate):

Types of changes

Checklist:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sup2073 commented 4 years ago

I am still having an issue when I supply parameters containing characters like æøå. Capture The characters seem to be messed up before they are sent back to Teams.