How is HTTP_ACCEPT_LANGUAGE header interpreted?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RvT

    #1

    How is HTTP_ACCEPT_LANGUAGE header interpreted?

    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!

  • Michael Fesser

    #2
    Re: How is HTTP_ACCEPT_LAN GUAGE header interpreted?

    ..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

    Comment

    • RvT

      #3
      Re: How is HTTP_ACCEPT_LAN GUAGE header interpreted?

      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!

      Comment

      Working...