473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How is HTTP_ACCEPT_LANGUAGE header interpreted?

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
2 5157
..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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bernd Liebermann | last post by:
Hi, I have a problem with redirection using the header function. The page towards which I redirect loads correctly, but the url in the browser's address bar is different is that of the...
3
by: BbT | last post by:
On my site I have a code based on $_SERVER, to selelect language variable: if(!isset($_SESSION)) { if(preg_match("/pl/i", $_SERVER)) { $_SESSION = "pl"; } elseif(preg_match("/en/i", $_SERVER))...
4
by: vishnu mahendra | last post by:
Hello to all, I am newbie to java. Is java applets are interpreted programs or just compiled programs that runs in java supported web browsers. I know for sure java applications are...
8
by: Edo van der Zouwen | last post by:
It's quite easy in Php: <?php $language = $_SERVER; $language_short = substr($taal,0,2); echo $language_short; ?>
18
by: Haines Brown | last post by:
In XHTML docs, I find that the W3 Validator raises an objection to my headers without actually invalidating the document. Not in <title></title>, but in meta name="abstract" and...
30
by: Anon | last post by:
If Http headers specify the character encoding, what is the point of the Meta tag specifying it?
6
by: R. Rajesh Jeba Anbiah | last post by:
Is it necessary or is there any standard to send HTTP header status for form inputs ? Say, the user is entering invalid password in login form and now all the applications I have seen are just...
36
by: Geiregat Jonas | last post by:
I've got this small app , from 2 .c files. One file contains the main and the other file contains functions used in the main. I compile this using gcc like this: gcc -c *c && gcc -o app *o. But I...
31
by: rbhlgjwbvi | last post by:
I have a header whose filename contains an embedded newline and I can't seem to #include it successfully. I've tried #include "my file.h" and #include "my\nfile.h"
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.