Skip to content

Commit 2c05c8d

Browse files
authored
fix: Replace deprecated utf8_encode usage (#201)
Fixes #199
1 parent 2a35991 commit 2c05c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private function createPowershellArgs(string $payloadFile): string
129129
*/
130130
private function makePowershellRequest(string $args): bool
131131
{
132-
$cmd = base64_encode(iconv("UTF-8", "UTF-16LE", utf8_encode($args)));
132+
$cmd = base64_encode(iconv('ISO-8859-1', 'UTF-16LE', $args));
133133
shell_exec("start /B powershell.exe -encodedCommand $cmd > nul 2>&1");
134134

135135
return true;

0 commit comments

Comments
 (0)