----- Original Message ----- 
From: "Hytham Shehab" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 25, 2002 4:21 AM
Subject: Re: Finding the country


> Randal L. Schwartz wrote:
> > If you're using it to force the language of the page, no.  Use the
> > browser specification instead.
> 
> thanks v. much for that Randal, but *how* ?
> how i can use the browser specification?

my $browser = $ENV{'HTTP_USER_AGENT'};
my $lang = $ENV{'HTTP_ACCEPT_LANGUAGE'};

you can also get this by javascript too.

However, that's a problem case if I am using a Chinese Win, 
and I use a English Netscape. You can get my system language 
if I use IE, however, you can't get it when I use Netscape, 
unless the user had set the browser accept other language too.

Rgds,
Connie


> 
> --
> Hytham Shehab
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to