Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36934 invoked by uid 1010); 7 Nov 2006 03:18:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36919 invoked from network); 7 Nov 2006 03:18:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2006 03:18:17 -0000 Authentication-Results: pb1.pair.com header.from=mba2000@ioplex.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mba2000@ioplex.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ioplex.com from 66.220.1.142 cause and error) X-PHP-List-Original-Sender: mba2000@ioplex.com X-Host-Fingerprint: 66.220.1.142 www.ioplex.com Linux 2.4/2.6 Received: from [66.220.1.142] ([66.220.1.142:4027] helo=www.ioplex.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/F9-34853-9FAFF454 for ; Mon, 06 Nov 2006 22:18:17 -0500 Received: from quark.foo.net (c-69-142-196-170.hsd1.nj.comcast.net [69.142.196.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.ioplex.com (Postfix) with ESMTP id 785C142B91 for ; Mon, 6 Nov 2006 22:18:13 -0500 (EST) Date: Mon, 6 Nov 2006 22:18:05 -0500 To: internals@lists.php.net Message-ID: <20061106221805.770c4ebc.mba2000@ioplex.com> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Where to setlocale(3)? From: mba2000@ioplex.com (Michael B Allen) 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/