<?php
//array(self::NON_UTF8_STRING_ISO, 'ISO-8859-1', self::NON_UTF8_STRING_ISO),
echo htmlspecialchars("\xce\xd2\xca\xc7\xb2\xe2\xca\xd4", ENT_QUOTES, 'GB2312');
echo htmlspecialchars("\xf8\xf9", ENT_QUOTES, 'ISO-8859-1');
$string = "\nLöic & René";
$output = iconv("UTF-8", "ISO-8859-1//TRANSLIT", $string);
echo $output;
$output = iconv("UTF-8", "UTF-8//TRANSLIT", $string);
echo $output;
preferences:
55.6 ms | 402 KiB | 5 Q