We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b25ab06 commit a72484bCopy full SHA for a72484b
xoops_trust_path/modules/xpwiki/class/include/init.php
@@ -58,7 +58,7 @@
58
$const['CONTENT_CHARSET'] = $this->get_content_charset();
59
60
// Internal content encoding (for mbstring extension)
61
-$const['SOURCE_ENCODING'] = (strtoupper($const['CONTENT_CHARSET']) === 'EUC-JP')? 'eucJP-win' : $const['CONTENT_CHARSET'];
+$const['SOURCE_ENCODING'] = (strtoupper($const['CONTENT_CHARSET']) === 'EUC-JP' && in_array('eucJP-win', mb_list_encodings()))? 'eucJP-win' : $const['CONTENT_CHARSET'];
62
63
// Is this site UTF-8?
64
$const['FILE_ENCORD_EXT'] = ($const['CONTENT_CHARSET'] === 'UTF-8')? '_utf8' : '';
0 commit comments