Skip to content
Permalink
Browse files

[core:init] check is supported 'eucJP-win' on PHP

  • Loading branch information
nao-pon committed Mar 3, 2014
1 parent b25ab06 commit a72484b2918ccd8c32bf1878d26e5cf9aae5deea
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/xpwiki/class/include/init.php
@@ -58,7 +58,7 @@
$const['CONTENT_CHARSET'] = $this->get_content_charset();

// Internal content encoding (for mbstring extension)
$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'];

// Is this site UTF-8?
$const['FILE_ENCORD_EXT'] = ($const['CONTENT_CHARSET'] === 'UTF-8')? '_utf8' : '';

0 comments on commit a72484b

Please sign in to comment.
You can’t perform that action at this time.