* features.class.php - Added fix for ENCODING='ASCII'
/trunk/features.class.php |
---|
2,8 → 2,9 |
require_once 'global.inc'; |
define('FEATURES_ENCODING', |
mb_detect_encoding(file_get_contents($_SERVER['SCRIPT_FILENAME']))); |
$encoding = mb_detect_encoding(file_get_contents($_SERVER['SCRIPT_FILENAME'])); |
if ($encoding === 'ASCII') $encoding = 'iso-8859-1'; |
define('FEATURES_ENCODING', $encoding); |
/** |
* A list of language features with URNs definitions |