RE: Language negotiation.

> David Woolley wrote:
> The only sites I know of that do do server side negotiation of anything
> but User Agent (using procedural, rather than declarative code, in that
> case) are Google, some versions of Microsoft's Windows Update page and
> some images on the W3C site.  None of these can effectively use 
> q factors as the common browsers do not allow the users to configure
> them, relying on positional fallback instead.


I've noticed that the browsers do specify q factors, although not the
magnitude, to pick three browsers at random:
IE/6: en-gb,xx;q=0.9,fr-ca;q=0.7,en;q=0.6,de-at;q=0.4,ja;q=0.3,zh;q=0.1
NS/7.1: en-gb,xx;q=0.8,fr-ca;q=0.6,de;q=0.4,ja;q=0.2
Opera/7.11: en-gb;q=1.0,en;q=0.9,fr;q=0.8

I have noticed that the algorithm in Apache's mod_negotiation is different
to what I'd expect though (I.e. if you ask for "en-gb" then "fr"; it will
give you "fr" as typically only "en" is set up - it doesn't implicitly
prefer "en" over "fr". Regardless, this is a little off topic for this list
;)

Received on Friday, 11 July 2003 04:49:19 UTC