Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121867 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48958 invoked from network); 30 Nov 2023 00:39:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Nov 2023 00:39:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 30571180003 for ; Wed, 29 Nov 2023 16:39:27 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 29 Nov 2023 16:39:26 -0800 (PST) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-332ed02ccd9so268655f8f.0 for ; Wed, 29 Nov 2023 16:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701304757; x=1701909557; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=5LKV1PjLDiGK/T3REF50j1iNqKQuUrIpjhZK1hgnFeM=; b=Okgat6axaKDyuFsLylyYu1J5wc4fi1TlkJNqqMnDRSbJL9sE0ywZc+ACBAI92IK1tH qubCS23/E87f/vwkExM7ZpDksoSr3x0yTca8GZ7d4DEHvnywWsCjWeATN99NCj25Kf6z 289oERiaDl5YHIf6m3SS6x2c9PSIsR/YSAwG6naSydfUIRgPpHrCZgqBI3O5l7r4OpWt F5b7LdDC/p+R5zyTuG34U7tDMrfvO3ZfxW+sQgsGpUPX2+1eWCkZWQCto/yuXkrb4yOW cHwi/rKKYDJSkLv4E4btdhwM7Fr/Wwxju/rZ7Jv56V+SSodQWvlOXICYonGZsvMS71Om q5ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701304757; x=1701909557; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5LKV1PjLDiGK/T3REF50j1iNqKQuUrIpjhZK1hgnFeM=; b=a3cud3Alrx1vsfNdCn8F7AccQRAVfwA5SpusLlYsrG7YOWvn0cm3lbXHh5u70Juqse s8W4rfbB0M6VcXo2Kv2HRB8rnwNe2B90zxhodubLavqzx9/ZJgKOFrHRu8IyRfX1ie2w nPQekiF18ik32ZOVF8/5Gv0wIi+LfI6WB49iX9jlRs0n4J9UbB59QYcQ2mVSy9JrZi5l oNXdmQB+xWFUX6j7CJuNlvgt8cevSftWmoNnXhKRuHObjbPi1IBzacy9xBVTEcTvC1BQ 4q5wIXzoR5fzQJm3Yss3FwUtM7SYEhgUwmZC3Y1D1gILM4IcoEUYqr3P4kS/Q6uU3UAr 5vnw== X-Gm-Message-State: AOJu0YzZKCyeEt9mD0ou9DFDdjL8RKLXBZPaox7Fa0Uvc0hjUmVDQm4D 2/UphIE9r+x7uA1bEaBZpi7AwMsVbHUZhHHntMv5ZRbUHB1g X-Google-Smtp-Source: AGHT+IEl5yKE1sgyGByZ9itCxRH2DNcbSzk8Ttqm90SIKnY0ogYfPaIpRlBOck3LBsG6rfg9FEH8K4HFPJtuIEPcJeA= X-Received: by 2002:a5d:6343:0:b0:32f:a5af:99ca with SMTP id b3-20020a5d6343000000b0032fa5af99camr14069797wrw.69.1701304757025; Wed, 29 Nov 2023 16:39:17 -0800 (PST) MIME-Version: 1.0 References: <1BA05C1A-AFAE-4E86-BAA2-420B22549519@gmail.com> <0D8856BC-DDEE-47F8-8C59-7F4DC7A64237@woofle.net> <2FF6C60C-300D-4900-84B8-0DF4311143A7@gmail.com> In-Reply-To: <2FF6C60C-300D-4900-84B8-0DF4311143A7@gmail.com> Date: Thu, 30 Nov 2023 09:39:05 +0900 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ? From: youkidearitai@gmail.com (youkidearitai) > Many languages like Rust only support UTF-8 > (https://doc.rust-lang.org/reference/input-format.html), and I don't > think any new PHP developers will expect PHP to work with non-UTF8 > encodings in the first place. Hi, PSR-1 is required use UTF-8. https://www.php-fig.org/psr/psr-1/ Files MUST use only UTF-8 without BOM for PHP code. And, Rust is newer than PHP that is very long history. If we were compare in PHP, almost we would compare language same old year. Java, Perl, Ruby and Python etc. (Java's default encoding is UTF-16). Therefore, I think we should stay with PSR-1 "MUST use only UTF-8 without BOM". Regards Yuya -- --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai -----------------------------