header("location: charEncodingTest.php"); exit; } if (isset($_SESSION['useEncoding'])) { $useEncoding = $_SESSION['useEncoding']; } if (isset($_SESSION['htmlEntities'])) { $htmlEntities = $_SESSION['htmlEntities']; } if (isset($_SESSION['decodeUTF8'])) { $decodeUTF8 = $_SESSION['decodeUTF8']; } $xajax = new xajax(); $xajax->setCharEncoding($useEncoding); if ($htmlEntities) { $xajax->outputEntitiesOn(); } if ($decodeUTF8) { $xajax->decodeUTF8InputOn(); } //$xajax->debugOn(); $xajax->registerFunction("setOptions"); $xajax->registerFunction("testForm"); $xajax->processRequests(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Character Encoding Test | xajax Tests</title> <?php