Answer the question
In order to leave comments, you need to log in
How to configure encoding when parsing with guzzle?
I'm trying to figure out the Guzzle HTTP client. At the output I get a downed encoding.
Tell me, what did I miss?
$client = new \GuzzleHttp\Client([
'base_uri' => 'http://pikabu.ru/'
]);
$response = $client->request('GET')->getBody()->getContents();
echo $response;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question