Re: foreach() for strings
| From: | Rasmus Lerdorf | Date: | Wed, 22 Jun 2011 14:06:12 +0000 |
| Subject: | Re: foreach() for strings | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53517@lists.php.net to get a copy of this message | ||
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