From 1a35a860353c6ab0a110d2f48ffd9771eaa3a826 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Thu, 26 Mar 2020 09:34:40 +1100 Subject: [PATCH] Ensure requests are utf-8 encoded. --- functions/Invoke-Method.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/Invoke-Method.ps1 b/functions/Invoke-Method.ps1 index 9739482..b9fc0cb 100644 --- a/functions/Invoke-Method.ps1 +++ b/functions/Invoke-Method.ps1 @@ -142,9 +142,10 @@ function Invoke-Method { } $params = @{ - Method = $Method - Headers = @{ - Accept = 'application/json' + Method = $Method + ContentType = 'application/json; charset=utf-8' + Headers = @{ + Accept = 'application/json; charset=utf-8' } }