decodeHeader() Test:\n"; if ($default_charset == 'utf-8' || $lossy_encoding) { echo '
'; } else { echo ''; } echo 'Default charset: ' . $default_charset . "
\n"
. 'Lossy_encoding: ' . ($lossy_encoding ? 'true' : 'false') . '
The results of this test depend on your current language (translation) selection (see Options==>Display Preferences) (and the character set it employs) and your $lossy_encoding setting (see config/config.php or conf.pl ==> 10 ==> 5).
'; echo ''; echo "(MDN) 000:\n html chars are not encoded,\n space is not encoded,\n 8bit chars are unmodified\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, false, false, false)); echo "\n"; } echo "--------\n"; echo "(compose) 001:\n html chars are not encoded,\n space is not encoded,\n 8bit chars may be converted or not (depends on \$lossy_encoding and \$default_charset)\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, false, false, true)); echo "\n"; } echo "--------\n"; echo "010\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, false, true, false)); echo "\n"; } echo "--------\n"; echo "011\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, false, true, true)); echo "\n"; } echo "--------\n"; echo "(download) 100\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, true, false, false)); echo "\n"; } echo "--------\n"; echo "101\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, true, false, true)); echo "\n"; } echo "--------\n"; echo "(default) 110\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, true, true, false)); echo "\n"; } echo "--------\n"; echo "111\n"; foreach ($header as $test) { echo htmlentities(decodeHeader($test, true, true, true)); echo "\n"; } echo "--------\n"; echo ''; $oTemplate->display('footer.tpl');