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:
Post a Comment