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 bc80c5d commit 5576cf6Copy full SHA for 5576cf6
src/Http/Response.php
@@ -74,7 +74,7 @@ public function getHtmlContent()
74
$content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">', $content);
75
} elseif (mb_detect_encoding($content, 'ISO-8859-1', true) === 'ISO-8859-1') {
76
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'ISO-8859-1');
77
- $content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">', $content);
+ $content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">', $content);
78
}
79
80
$this->htmlContent->loadHTML(trim($content));
0 commit comments