-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle Response::utf8Data with unsupported encodings
Sometimes, a response declares an unsupported encoding. It might be not very handy to test supported encodings as mb_list_encodings don't return all the supported encodings. My current solution is "try and see". If the conversion fails, force the conversion from UTF-8 (and replace unsupported characters by "?").
- Loading branch information
1 parent
45d60fd
commit a82bb53
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters