473,729 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How is HTTP_ACCEPT_LAN GUAGE 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_LA NGUAGE"]?>

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 5177
..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_LA NGUAGE"]?>

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.de wrote:
.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_LA NGUAGE"]?>
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
4867
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 redirecting page. Both pages are located in different directories, so that my relative links don't work in the page, because the browser retrieves the current directory from the wrong url in the location bar. This problem occurs only on the server of my...
3
5322
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)) { $_SESSION = "en"; } elseif(preg_match("/de/i", $_SERVER)) {
4
3965
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 interpreted applications.because javac is a compiler that converts source code into Bytecodes. java is a interpreter(JVM) that executes Bytecodes.
8
14661
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
2608
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 name="description" I find that the inclusion of <q></q> is objected to by the W3 validator. I'm told "< is first character of a delimiter, but occurred as data." I'm having trouble understanding this is significant. Is the "<" definitely to be avoided (by...
30
4848
by: Anon | last post by:
If Http headers specify the character encoding, what is the point of the Meta tag specifying it?
6
2620
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 displaying error messages above the form (with HTTP status 200); is it necessary to send 401 status in this case? -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
36
3327
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 want to do it in an other way. I want to use header files I've googled but did not find anything usefull expect that there should be prototypes in my header file can anyone help me ?
31
2264
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
8921
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9427
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9202
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9148
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8151
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.