Re: Where to setlocale(3)?
| From: | Ilia Alshanetsky | Date: | Tue, 07 Nov 2006 16:39:08 +0000 |
| Subject: | Re: Where to setlocale(3)? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26408@lists.php.net to get a copy of this message | ||
You just call the setlocale() function in PHP.
On 6-Nov-06, at 10:18 PM, Michael B Allen wrote:
How does one PROPERLY set the locale under which PHP scripts run? Is it a script level property, PHP level property, HTTP level property or inherited from the OS default? I have a module that converts strings between the locale character encoding and another encoding. Currently setlocale(LC_CTYPE, NULL) within a script returns 'C' which is to say the locale is not set. Where do I look? Thanks, Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.phpIlia Alshanetsky