Skip to content

Commit

Permalink
[core:init] check is supported 'eucJP-win' on PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Mar 3, 2014
1 parent b25ab06 commit a72484b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xpwiki/class/include/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' : '';
Expand Down

0 comments on commit a72484b

Please sign in to comment.