fp, 4096); // convert HTML entities to valid UTF-8 characters $line = String::html2utf($line); // slightly (~10%) faster than above, but not quite as accurate, and requires html_entity_decode() // $line = html_entity_decode($line, ENT_COMPAT, strtoupper(Config::getVar('i18n', 'client_charset'))); return $line; } } ?>