all groups > dotnet jscript > january 2004 >
You're in the

dotnet jscript

group:

regional setting



regional setting Sunny
1/21/2004 5:43:05 PM
dotnet jscript: how do i get the language set in regional setting by using
Request.ServerVariable(" " )
using jscript
and consequently get the Language/locale ID and set the date etc of the
system in that particular language

Re: regional setting Martin Honnen
1/21/2004 6:59:14 PM


[quoted text, click to view]

A browser doesn't send the regional settings of the client, all a
browser usually sends (if the user configures it to) is the HTTP
Accept-Language header, you can read that in classical ASP with JScript
as follows

<%@ Language="JScript" %>
<p>
HTTP Accept-Language header:
<%= Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") %>
</p>

It might look like
en-us,en;q=0.7,de;q=0.3
and is explained at
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
--

Martin Honnen
http://JavaScript.FAQTs.com/
AddThis Social Bookmark Button