break;
} // end switch $framename
break;
+ case HOTPOT_NAVIGATION_GIVEUP:
+ // replace charset , if necessary
+ // HotPots are plain ascii (iso-8859-1) with unicode chars encoded as HTML entities
+ $charset = get_string("thischarset");
+ if ($charset == 'iso-8859-1') {
+ // do nothing
+ } else {
+ $hp->html = preg_replace(
+ '|<meta[^>]*charset=iso-8859-1[^>]*>|is',
+ '<meta http-equiv="Content-Type" content="text/html; charset='.$charset.'" />',
+ $hp->html
+ );
+ }
+ // no break (continue to print html to browser)
default:
// HOTPOT_NAVIGATION_BUTTONS
- // HOTPOT_NAVIGATION_GIVEUP
// HOTPOT_NAVIGATION_NONE
if (!empty($available_msg)) {
$hp->insert_message('<!-- BeginTopNavButtons -->', $available_msg);