Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53517 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5688 invoked from network); 22 Jun 2011 14:06:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2011 14:06:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.83.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:42342] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/B4-12605-FD6F10E4 for ; Wed, 22 Jun 2011 10:06:24 -0400 Received: by pvh10 with SMTP id 10so548317pvh.29 for ; Wed, 22 Jun 2011 07:06:21 -0700 (PDT) Received: by 10.143.34.3 with SMTP id m3mr145286wfj.140.1308751581023; Wed, 22 Jun 2011 07:06:21 -0700 (PDT) Received: from [192.168.200.5] (c-50-131-46-20.hsd1.ca.comcast.net [50.131.46.20]) by mx.google.com with ESMTPS id c10sm415934wff.12.2011.06.22.07.06.13 (version=SSLv3 cipher=OTHER); Wed, 22 Jun 2011 07:06:15 -0700 (PDT) Message-ID: <4E01F6D4.5050302@lerdorf.com> Date: Wed, 22 Jun 2011 07:06:12 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: Reindl Harald CC: internals@lists.php.net References: <4E00818C.7040201@lsces.co.uk> <4E008EA3.4000403@lsces.co.uk> <41269.5975f3c3.1308671739.nsm@avilys.eik.lt> <4E00C370.9040803@thelounge.net> <4E00C5D0.9020302@thelounge.net> <57392.5975f3c3.1308676323.nsm@avilys.eik.lt> <4E00DA33.9040504@thelounge.net> <58008.5975f3c3.1308687593.nsm@avilys.eik.lt> <4E00FEAC.3040500@thelounge.net> <52139.5975f3c3.1308720282.nsm@avilys.eik.lt> <4E01CEA0.2090607@thelounge.net> <4E01DE36.40009@thelounge.net> <4E01F0C6.6040401@thelounge.net> <4E01F1E0.4090900@toolpark.com> <4E01F38D.9070307@thelounge.net> <4E01F4B0.9040804@lerdorf.com> <4E01F5D6.2080600@thelounge.net> In-Reply-To: <4E01F5D6.2080600@thelounge.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] foreach() for strings From: rasmus@lerdorf.com (Rasmus Lerdorf) On 06/22/2011 07:01 AM, Reindl Harald wrote: > > > Am 22.06.2011 15:57, schrieb Rasmus Lerdorf: > >> There is obviously no way to tell if "hello" is UTF-8 or ISO-8859-1. It >> is technically impossible since the two are identical in that range. > > yes and so this will not work > > and as long PHP has on million places troubles with UTF8 it would > be hardly needed find real soultions as long as functions which > are not working with UTF8 input are not throwing a fatal error > >> And please keep things polite. It is very rare that I warn people about >> that here, and I will only do it once. > > this is my tone if somebody believes he is genius and can solve > problems which are since years existing with a sinlge line Then please stop posting to this list. There is no excuse for this tone. Especially since you basically implied that you wanted a str_is_ut8() function that can detect whether "hello" is UTF8 or ISO-8859-1. That's a completely nonsensical request. -Rasmus