Re: Q on setlocale...

From: Date: Tue, 30 Sep 2003 15:25:09 +0000
Subject: Re: Q on setlocale...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-164406@lists.php.net to get a copy of this message
"Tom Rogers" <trogers@kwikin.com> wrote in message news:096971609.20030928180927@kwikin.com... > Hi, > > Sunday, September 28, 2003, 5:39:53 PM, you wrote: > j> I found this function, setlocale... > > j> now, is there a way to GET the LOCALE setting of a machine? > > j> Walter > > > call setlocale with 0 (zero or NULL) as the second parameter and it returns the current setting Thanks Tom... Now, if I understand this properly, This should return French_France... setlocale (LC_ALL, 'fr_FR'); echo setlocale (LC_ALL, ''); and this English_ Great Britain setlocale (LC_ALL, 'en_GB'); echo setlocale (LC_ALL, ''); and this German_Germany setlocale (LC_ALL, 'de_DE'); echo setlocale (LC_ALL, ''); and this Russian_Russia setlocale (LC_ALL, 'ru_RU'); echo setlocale (LC_ALL, ''); Well, all of them return the same thing for me... English_United States.1252 The 2 lines I have given in my examples are the only 2 lines in the script. I must be doing something wrong. Any ideas? Thanks Walter PS: And yes, I read the manual, much slower this time.

« previous php.general (#164406) next »