C
clintonG
I'm messing around with the Request.UserLanguages and the
Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"); to see
how similar or dissimilar they may be.
I observe and conclude that both get their value from the Accept-Language
key stored in the header of the response. To test this hypothesis I
reconfigure IE Language Preferences which by default (for me)
is English (United States)[en-us].
I include a Spanish (Mexico)[es-mx] Language Preference and
use the Language Preferences tool to move the Spanish selection
to the top of the Language Preferences list.
I load a page with a couple of Response.Write statements and see the
following written to the page...
HTTP_ACCEPT_LANGUAGE: es-mx,en-us;q=0.5
User Language 0: es-mx
User Language 1: en-us;q=0.5
So, I ask myself what the heck is this q=0.5 name=value pair?
I go back to Language Preferences and feel like a freedom fighter
so I add Arabic(Iraq)[ar-iq] and this is what is written to the page...
HTTP_ACCEPT_LANGUAGE: es-mx,en-us;q=0.7,ar-iq;q=0.3
User Language 0: es-mx
User Language 1: en-us;q=0.7
User Language 2: ar-iq;q=0.3
So, now I'm asking, "what the heck does this q sh!t mean and why the
inconsistent values?"
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"); to see
how similar or dissimilar they may be.
I observe and conclude that both get their value from the Accept-Language
key stored in the header of the response. To test this hypothesis I
reconfigure IE Language Preferences which by default (for me)
is English (United States)[en-us].
I include a Spanish (Mexico)[es-mx] Language Preference and
use the Language Preferences tool to move the Spanish selection
to the top of the Language Preferences list.
I load a page with a couple of Response.Write statements and see the
following written to the page...
HTTP_ACCEPT_LANGUAGE: es-mx,en-us;q=0.5
User Language 0: es-mx
User Language 1: en-us;q=0.5
So, I ask myself what the heck is this q=0.5 name=value pair?
I go back to Language Preferences and feel like a freedom fighter
so I add Arabic(Iraq)[ar-iq] and this is what is written to the page...
HTTP_ACCEPT_LANGUAGE: es-mx,en-us;q=0.7,ar-iq;q=0.3
User Language 0: es-mx
User Language 1: en-us;q=0.7
User Language 2: ar-iq;q=0.3
So, now I'm asking, "what the heck does this q sh!t mean and why the
inconsistent values?"
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/