AndrewPla / TOPdeskPS

PowerShell module to interact with the TOPdesk API
MIT License
30 stars 12 forks source link

Doesn't format special german characters äöüÄÖÜß #91

Open SCUSER1 opened 5 years ago

SCUSER1 commented 5 years ago

Hi,

if the fields request, briefdescription or action contain characters like äöü Topdesk will show them like this: ���

If you change the request from ü to &uuml it works like a charme!

Is it possible to implement a conversion for german/special characters?

Here is a reference list:

https://dhue.de/html-schreibweise-fuer-aeueoess/

AndrewPla commented 5 years ago

PRs are welcome for this.

rgorme commented 2 years ago

I'm getting a similar behavior when using danish characters 'æ,ø,å' when calling New-TdIncident. I can resolve this issue by changing the default value for the $ContentType parameter in the Invoke-TdMethod function to 'application/json; charset=utf-8' instead of 'application/json'. I'm no making a PR on this because i don't know if there is other functions relying on this specific default value.