Skip to content

Commit 7695855

Browse files
committed
try to fix french encoding #190
1 parent 9fb7c9b commit 7695855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getHtmlContent()
5151

5252
$this->htmlContent = new DOMDocument();
5353

54-
if ((mb_detect_encoding($content) === 'UTF-8') && mb_check_encoding($content, 'UTF-8')) {
54+
if (mb_detect_encoding($content) === 'UTF-8') {
5555
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
5656
$content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">', $content);
5757
}

0 commit comments

Comments
 (0)