We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef55c2 commit 315f11bCopy full SHA for 315f11b
src/Processors/StringProcessor.php
@@ -91,17 +91,17 @@ private function handleBinaryString(): void
91
*/
92
private function utf8Encode(string $string): string
93
{
94
- $converted = iconv($this->charset, 'UTF-8', $string);
+ $converted = @iconv($this->charset, 'UTF-8', $string);
95
// @codeCoverageIgnoreStart
96
if ($converted !== false) {
97
return $converted;
98
}
99
- $converted = iconv('CP1252', 'UTF-8', $string);
+ $converted = @iconv('CP1252', 'UTF-8', $string);
100
if ($converted !== false && $this->charset !== 'CP1252') {
101
102
103
104
- return iconv('CP850', 'UTF-8', $string) ?: $string;
+ return @iconv('CP850', 'UTF-8', $string) ?: $string;
105
// @codeCoverageIgnoreEnd
106
107
0 commit comments