From ca23f18fd1919ada017d58874b68777a18f04e75 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Wed, 13 Mar 2024 11:19:13 -0400 Subject: [PATCH] fix: Replace deprecated utf8_encode usage --- src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php b/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php index 0d6a293a..69a39280 100644 --- a/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php +++ b/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php @@ -129,7 +129,7 @@ private function createPowershellArgs(string $payloadFile): string */ private function makePowershellRequest(string $args): bool { - $cmd = base64_encode(iconv("UTF-8", "UTF-16LE", utf8_encode($args))); + $cmd = base64_encode(iconv('ISO-8859-1', 'UTF-16LE', $args)); shell_exec("start /B powershell.exe -encodedCommand $cmd > nul 2>&1"); return true;