From 6e9b61838e3ec20dfe7b67241f9825840cf00450 Mon Sep 17 00:00:00 2001 From: tragopogon <36951718+tragopogon@users.noreply.github.com> Date: Mon, 20 Mar 2023 14:30:07 +0100 Subject: [PATCH] fix: durable orchestration with special characters Fix *Start-DurableOrchestration* with charset utf-8 to allow special characters in the *InputObject*. --- .../Microsoft.Azure.Functions.PowerShellWorker.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Microsoft.Azure.Functions.PowerShellWorker/Microsoft.Azure.Functions.PowerShellWorker.psm1 b/src/Modules/Microsoft.Azure.Functions.PowerShellWorker/Microsoft.Azure.Functions.PowerShellWorker.psm1 index ba2a6373..33081d16 100644 --- a/src/Modules/Microsoft.Azure.Functions.PowerShellWorker/Microsoft.Azure.Functions.PowerShellWorker.psm1 +++ b/src/Modules/Microsoft.Azure.Functions.PowerShellWorker/Microsoft.Azure.Functions.PowerShellWorker.psm1 @@ -129,7 +129,7 @@ function Start-DurableOrchestration { $Body = $InputObject | ConvertTo-Json -Compress - $null = Invoke-RestMethod -Uri $Uri -Method 'POST' -ContentType 'application/json' -Body $Body + $null = Invoke-RestMethod -Uri $Uri -Method 'POST' -ContentType 'application/json;charset=utf-8' -Body $Body return $instanceId }