Monday, December 17, 2007

How to detect the language supported by the web browser

How to detect the language supported by the web browser

- We can get the value of HTTP_ACCEPT_LANGUAGE to detect the language supported by the web browser.

<%

Set strLang = Request.servervariable("HTTP_ACCEPT_LANGUAGE")

If intStr(strLang, "en") > 0 Then

Response.redirect("english.asp")

Else

Response.redirect("other.asp")

End If

%>

No comments: