Jump to content

Detecting UTF8 browser support?


random1

Recommended Posts

I now have:

 

	// Detecting if the browser supports UTF character set (required)
	if (strpos($_SERVER['HTTP_ACCEPT_CHARSET'], 'utf-8') !== FALSE)
	{
		echo 'true';
	}
	else
	{
		echo 'false';
	}

 

and it is working in Firefox and Opera but not in Internet Explorer or Safari. Any suggestions.

 

Internet Explorer and Safari show the notice:

 

Notice: Undefined index: HTTP_ACCEPT_CHARSET in ........ 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.