Skip to content

🐛fix: #151 - Fix the UTF malformated #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laudeco
Copy link

@laudeco laudeco commented Jul 9, 2025

The problem

Yesterday we had the following issue with the OVH API

"PHP message: JsonException: Malformed UTF-8 characters, possibly incorrectly encoded in /var/www/html/application/vendor/ovh/ovh/src/Api.php:380

Note

Do not pay attention to the Line (we hotfixed the line on our environment)

Fix

To fix the issue we ignored the malformed UTF8 json by using the flags of json_decode https://www.php.net/manual/en/function.json-decode.php https://www.php.net/manual/en/json.constants.php#constant.json-invalid-utf8-ignore

issue

The issue #151 is fixed by the current MR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant