sportmonks-soccer icon indicating copy to clipboard operation
sportmonks-soccer copied to clipboard

utf8 error in response

Open mirzazeyrek opened this issue 4 years ago • 0 comments

https://github.com/joesaunderson/sportmonks-soccer/blob/4740950246d483bcac88aa7263af0f2c6441ed5f/src/SoccerClient.php#L54

because of some reasons due to new changes in api,

return json_decode($response);

must be

json_decode(utf8_encode($response));

otherwise some of the values in the object being NULL even though there are values. I'm not sure if the repository is still being maintained but for sure a fix is required for the 2020 soccer stats.

mirzazeyrek avatar Jan 28 '21 23:01 mirzazeyrek