".$t."

"; // 3. Convert it back to latin1: try { $t = HTML_Entities::decode($t, HTML_Entities::ALL, "latin1"); } catch (PEAR_Exception $e) { var_dump($e); } echo "

".$t."

"; // 4. Write the list of entities echo ""; $table = HTML_Entities::getTranslationTable(); foreach ($table as $char=>$entity) { echo ""; } echo "
{$char}"; echo HTML_Entities::encode($entity); echo "
"; ?>