diff options
Diffstat (limited to 'inc/poche/Tools.class.php')
-rw-r--r-- | inc/poche/Tools.class.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index d0e43166..4a72bae3 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -170,6 +170,7 @@ class Tools | |||
170 | preg_match('#charset="?(.*)"#si', $meta[0], $encoding); | 170 | preg_match('#charset="?(.*)"#si', $meta[0], $encoding); |
171 | # if charset is found set it otherwise, set it to utf-8 | 171 | # if charset is found set it otherwise, set it to utf-8 |
172 | $html_charset = (!empty($encoding[1])) ? strtolower($encoding[1]) : 'utf-8'; | 172 | $html_charset = (!empty($encoding[1])) ? strtolower($encoding[1]) : 'utf-8'; |
173 | if (empty($encoding[1])) $encoding[1] = 'utf-8'; | ||
173 | } else { | 174 | } else { |
174 | $html_charset = 'utf-8'; | 175 | $html_charset = 'utf-8'; |
175 | $encoding[1] = ''; | 176 | $encoding[1] = ''; |