diff --git a/docs/chm/common.php b/docs/chm/common.php index 2f0151f6..2f9cfe55 100755 --- a/docs/chm/common.php +++ b/docs/chm/common.php @@ -61,7 +61,7 @@ function convertCharset($buf) // Returns the name of character set in the given document function detectDocumentCharset($doc) { - if (preg_match("//iU", $doc, $reg)) { + if (preg_match('/]+CHARSET=["\'\s]?([\w\d-]+)["\'\s]?\s*>/iS', $doc, $reg)) { return $reg[1]; } return false; diff --git a/docs/pt_BR/make_chm_index.html b/docs/pt_BR/make_chm_index.html index 3949cff9..a2701768 100755 --- a/docs/pt_BR/make_chm_index.html +++ b/docs/pt_BR/make_chm_index.html @@ -10,7 +10,7 @@
| ||||||||||||||
![]() |