Skip to content

Commit 315f11b

Browse files
committed
great artists steal, close #20
1 parent aef55c2 commit 315f11b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Processors/StringProcessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ private function handleBinaryString(): void
9191
*/
9292
private function utf8Encode(string $string): string
9393
{
94-
$converted = iconv($this->charset, 'UTF-8', $string);
94+
$converted = @iconv($this->charset, 'UTF-8', $string);
9595
// @codeCoverageIgnoreStart
9696
if ($converted !== false) {
9797
return $converted;
9898
}
99-
$converted = iconv('CP1252', 'UTF-8', $string);
99+
$converted = @iconv('CP1252', 'UTF-8', $string);
100100
if ($converted !== false && $this->charset !== 'CP1252') {
101101
return $converted;
102102
}
103103

104-
return iconv('CP850', 'UTF-8', $string) ?: $string;
104+
return @iconv('CP850', 'UTF-8', $string) ?: $string;
105105
// @codeCoverageIgnoreEnd
106106
}
107107
}

0 commit comments

Comments
 (0)