Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LCID - Internet Explorer for Windows vs. for Macintosh

Status
Not open for further replies.

questhaven

Programmer
Mar 28, 2001
81
US
Please forvie me for posting this in multiple forums - I am at a loss here and am hoping someone know s the answer!

Hi there - I am having an issue with trying to read the LCID value from the Macintosh version of Internet Explorer. With IE for Windows this works fine:
<%
strAcceptLanguage = Request.ServerVariables(&quot;HTTP_ACCEPT_LANGUAGE&quot;)
Select Case LCase(strAcceptLanguage)
Case &quot;en-us&quot;
strLCID = 1033 ' English(United States)
End Select
Session.LCID = strLCID
%>

but for with IE for Macintosh I am getting an error message that says:
&quot;Invalid LCID&quot;

Does anyone know what could be causing this?

Thanks in advance!
 
I'm willing to bet that the Mac version your using to test is passing something other than &quot;en-us&quot;. Since there is no case else statement in your case statement, than you never set strLCID. Which means you latwer attempt to set the LCID to an empty value. Try doing a Response.Write to see what the Mac is sending in the HTTP_ACCEPT_LANGUAGE header.

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top