Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32476 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78159 invoked by uid 1010); 27 Sep 2007 18:37:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78144 invoked from network); 27 Sep 2007 18:37:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2007 18:37:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.231 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 64.233.162.231 nz-out-0506.google.com Received: from [64.233.162.231] ([64.233.162.231:6976] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/27-31655-D68FBF64 for ; Thu, 27 Sep 2007 14:37:35 -0400 Received: by nz-out-0506.google.com with SMTP id x7so1768220nzc for ; Thu, 27 Sep 2007 11:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JX8/Ju7AXTa01pjATGpjRoL+HSII00x6c5AVaujFacg=; b=oAe6znVsDz6+ZYjmKAABfNs4KB/8ly+7CUMHIjTkBlHBX70izwpCnHfKE3t+eLgrOAyLngp8y6ldICX4SLjZqfzSEM1BxDQqejl6BV8TzLdPyWp4oVrtE2hRp6ox/jVFSeB9osxJZf0xWidiYR/Yi8OQFMbHFMKljA9et+QbFTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Rw9iCXs91FMTAMlXITZVkoqH1L0vyn8CGGjBhuIQG/sOHr+TuSpVYfVHAZ08A398Xg32HTcPYWOtJ1Xpdcs63yLW197qmTRZFbmnJ/JhQWCLansfu+voZY5VYdcxrfhEJt5FIuEVNYTRT8G0UsUPnF/Gbg4LmNCyVJU3WRKKZPc= Received: by 10.141.99.4 with SMTP id b4mr1081345rvm.1190918249765; Thu, 27 Sep 2007 11:37:29 -0700 (PDT) Received: by 10.140.200.3 with HTTP; Thu, 27 Sep 2007 11:37:29 -0700 (PDT) Message-ID: <98b8086f0709271137w32a88103sa3c3b810970e150e@mail.gmail.com> Date: Thu, 27 Sep 2007 20:37:29 +0200 To: drysler Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [PHP-DEV] how php knows the charset of my code? From: troelskn@gmail.com ("troels knak-nielsen") On 9/27/07, drysler wrote: > Hello, > > i am practising with charsets at the moment and so i thought: > > -> How does PHP know the charset i use in my source-code? > -> Are php-sources limited to specific charsets? > -> In which areas you have to be aware of the source-code-charset? > > > Perhaps somebody here on the list can tell something about these issues? > Thanks! > Unless I'm mistaken, PHP expects the source files to be in the internal charset, which is ISO-8859-1. If you use the mbstring extension, you can use different internal encodings. See: http://www.php.net/mbstring Another good read on charset vs. PHP is: http://www.phpwact.org/php/i18n/charsets?s=utf -- troels