W3C home > Mailing lists > Public > www-international@w3.org > January to March 2000

RE: Accept-Language and q values

From: Olin Lagon <olin@worldpoint.com>
Date: Sat, 29 Jan 2000 10:17:33 -1000
To: "Erik van der Poel" <erik@netscape.com>, <www-international@w3.org>
Message-ID: <000701bf6a95$e008d5d0$0c00010a@mobile6.worldpoint.com>
Hi Erik,

Are you interested in getting all of the language code values and storing
them? If yes, then I haven't seen any software out there to specifically
process it like this. We have written some server-side Java code that takes
the entire String value, like "ja,en;q=0.5", parses it, then stores each
language attribute separately. We use this for language logging.

For our Web applications that use the accept language to redirect, all we do
is take the String value again, then redirect based on the first language
code, if available. If not, it checks the next and so forth bypassing any q
values. I don't think snippets of code like this exists for download, but is
fairly straightforward to write.

Regards, Olin

--
Olin Lagon, Chief Architect      Voice: 808.780.3978 (direct)
WorldPoint                       Toll Free: 888.452.3939 x3978
2800 Woodlawn Drive, Suite 170   Fax: 808.539.3943
Honolulu, Hawaii 96822           ICQ: 14808555
Web: http://www.worldpoint.com/  Email: olin@worldpoint.com
--

> -----Original Message-----
> From: www-international-request@w3.org
> [mailto:www-international-request@w3.org]On Behalf Of Erik van der Poel
> Sent: Friday, January 28, 2000 8:17 PM
> To: www-international@w3.org
> Subject: Accept-Language and q values
>
>
> Hello,
>
> I'm wondering if there is any server-side software out there that
> processes Accept-Language headers but has trouble if q values are
> included. For example:
>
>   Accept-Language: ja,en;q=0.5
>
> I heard that MSIE emits q values. Have there been any problems with
> that?
>
> Thanks,
>
> Erik
>
>
Received on Saturday, 29 January 2000 15:13:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:55 GMT