index 621863cb1a9e9c956643d783a5b352dc36baaf97..adb5c1d3018939ffed7347513c0bd3003273393f 100644 (file)
/* default to "everything is acceptable", as RFC2616 specifies */
$acceptLang=(($_SERVER["HTTP_ACCEPT_LANGUAGE"] == '') ? '*' :
$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
- $acceptChar=(($_SERVER["HTTP_ACCEPT_CHARSET"] == '') ? '*' :
+ /* Commented out due to problems with IE7, defaulting to the one below... */
+ #$acceptChar=(($_SERVER["HTTP_ACCEPT_CHARSET"] == '') ? '*' :
+ # $_SERVER["HTTP_ACCEPT_CHARSET"]);
+ $acceptChar=(($_SERVER["HTTP_ACCEPT_CHARSET"] == '') ? 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' :
$_SERVER["HTTP_ACCEPT_CHARSET"]);
$alparts=@preg_split("/,/",$acceptLang);
$acparts=@preg_split("/,/",$acceptChar);
-
+
/* Parse the contents of the Accept-Language header.*/
foreach($alparts as $part) {
$part=trim($part);