Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26408 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2371 invoked by uid 1010); 7 Nov 2006 16:39:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2356 invoked from network); 7 Nov 2006 16:39:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2006 16:39:22 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.200 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.162.200 nz-out-0102.google.com Linux 2.4/2.6 Received: from [64.233.162.200] ([64.233.162.200:63021] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/CA-30081-9B6B0554 for ; Tue, 07 Nov 2006 11:39:21 -0500 Received: by nz-out-0102.google.com with SMTP id o1so1227623nzf for ; Tue, 07 Nov 2006 08:39:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=mtFCDvBJJU3y3cxRAyBJqNbGo94eAb1QS/vfA99cL/X0o4t5ZfLklGn7z/enyGDiqIqJs7wwoAIbNjMnIBTP8DUAa8hxx9Sca/40fqOIb2rdK8f2ammStQGLChksCx6upcXD5e1h14dlPyaglCo23dJ8DaEHWEGIgVBSemQSbII= Received: by 10.65.20.3 with SMTP id x3mr8012991qbi.1162917558955; Tue, 07 Nov 2006 08:39:18 -0800 (PST) Received: from ?192.168.1.6? ( [74.108.69.82]) by mx.google.com with ESMTP id e13sm9054775qbe.2006.11.07.08.39.18; Tue, 07 Nov 2006 08:39:18 -0800 (PST) In-Reply-To: <20061106221805.770c4ebc.mba2000@ioplex.com> References: <20061106221805.770c4ebc.mba2000@ioplex.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <7853FD2D-62BC-4C65-AD5D-027C808CF80A@prohost.org> Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Tue, 7 Nov 2006 11:39:08 -0500 To: Michael B Allen X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Where to setlocale(3)? From: ilia@prohost.org (Ilia Alshanetsky) 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.php > > Ilia Alshanetsky