By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,651 Members | 1,924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,651 IT Pros & Developers. It's quick & easy.

How is HTTP_ACCEPT_LANGUAGE header interpreted?

P: n/a
RvT
I have an interesting problem. I have FireFox2, IE7 and Opera9 as test
browsers. All browsers are in Dutch. When I execute the following:

<?=$_SERVER["HTTP_ACCEPT_LANGUAGE"]?>

The result is as follows:

FireFox: nl,en-us;q=0.7,en;q=0.3
Opera: nl-NL,nl;q=0.9,en;q=0.8

and then:

IE: es-us (!!!!!!)

I mean, how in earth does the Dutch version of IE claims that Spanish
is the preferential language? I live in South America, so my regional
settings in the configuration panel of XP is set to Spanish(Peru), but
I cannot find the reason why IE would look to that setting.

Anyone here to explain me why IE handles this very simple routine in a
different way than Opera and FireFox?

Many thanks!

Jun 1 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
..oO(RvT)
>I have an interesting problem. I have FireFox2, IE7 and Opera9 as test
browsers. All browsers are in Dutch. When I execute the following:

<?=$_SERVER["HTTP_ACCEPT_LANGUAGE"]?>

The result is as follows:

FireFox: nl,en-us;q=0.7,en;q=0.3
Opera: nl-NL,nl;q=0.9,en;q=0.8

and then:

IE: es-us (!!!!!!)

I mean, how in earth does the Dutch version of IE claims that Spanish
is the preferential language? I live in South America, so my regional
settings in the configuration panel of XP is set to Spanish(Peru), but
I cannot find the reason why IE would look to that setting.
Check your internet options to set the preferred language(s) for IE.
>Anyone here to explain me why IE handles this very simple routine in a
different way than Opera and FireFox?
Because the configuration is different. Every browser has to be
configured properly to send correct ACCEPT headers.

Micha
Jun 2 '07 #2

P: n/a
RvT
On 2 jun, 05:33, Michael Fesser <neti...@gmx.dewrote:
.oO(RvT)
I have an interesting problem. I have FireFox2, IE7 and Opera9 as test
browsers. All browsers are in Dutch. When I execute the following:
<?=$_SERVER["HTTP_ACCEPT_LANGUAGE"]?>
The result is as follows:
FireFox: nl,en-us;q=0.7,en;q=0.3
Opera: nl-NL,nl;q=0.9,en;q=0.8
and then:
IE: es-us (!!!!!!)
I mean, how in earth does the Dutch version of IE claims that Spanish
is the preferential language? I live in South America, so my regional
settings in the configuration panel of XP is set to Spanish(Peru), but
I cannot find the reason why IE would look to that setting.

Check your internet options to set the preferred language(s) for IE.
Anyone here to explain me why IE handles this very simple routine in a
different way than Opera and FireFox?

Because the configuration is different. Every browser has to be
configured properly to send correct ACCEPT headers.

Micha
Thanks! That seemed to have done the trick, but still it would be
better for IE to look at its own language rather than determining it
according to the regional settings. I know, I am located in South
America, so I've selected that in the regional settings, but that does
not automatically mean I want the same for my browser. Anyway, thanks
again for your help!

Jun 2 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.