Skip to content

Commit

Permalink
Merge pull request #11 from Plasma-Platform/feature/QUASAR-3217/unesc…
Browse files Browse the repository at this point in the history
…apedUnicode

QUASAR-3217 - add JSON_UNESCAPED_UNICODE
  • Loading branch information
ch authored Nov 30, 2021
2 parents aac22d1 + 9f84bb2 commit 199a127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/API2Client/Client/Http/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function applyRequestMethod ($url, $method, $params)
curl_setopt ($this->curl, CURLOPT_HTTPHEADER, array ('Content-Type: application/json'));
curl_setopt ($this->curl, CURLOPT_POST, 1);

$data = json_encode ($params);
$data = json_encode ($params, JSON_UNESCAPED_UNICODE);

if (json_last_error () !== 0)
{
Expand All @@ -105,4 +105,4 @@ protected function applyRequestMethod ($url, $method, $params)
throw new HttpClientException ('Bad request method');
}
}
}
}

0 comments on commit 199a127

Please sign in to comment.