Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121859 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11939 invoked from network); 29 Nov 2023 12:32:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Nov 2023 12:32:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 220C5180038 for ; Wed, 29 Nov 2023 04:33:01 -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-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 04:33:00 -0800 (PST) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40b538d5c4eso3916825e9.1 for ; Wed, 29 Nov 2023 04:32:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701261171; x=1701865971; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Gbqa5w6UKjqeRAs0bugvKqsqrVNrtb68PcldIBrK0SY=; b=cez3me23dkVk/3ANB1SX7m2db1A78rvbF80ybb+tHbdUwVdZPwnGrZpPGhD4+FeTNr m2WpqNphlcXWvaiE2TgEQUcK+Vt6XCQF1PtEAagoYVGnbAPqdTFJ9To6+IPzF+c+rtdF PT8gQOuwuC9YNwZ9Et59WCgREesHjXknaeZz+tagvR0cHl6JDdZhlcL/wMU1rRE8GKU8 LEk0WRxGXoTBSLCXj6Ma31Cl1PolvUoEEBIm4aT/Sh8V+oUdExDilI6cqZ1SolmvMPim 70xdYIV5fOUFKmmL38nXeGqVqD9kXdgcCGkyql8t6xiNIBCcloX5wyZ+poP+D75fQ3AQ Gr1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701261171; x=1701865971; h=content-transfer-encoding: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=Gbqa5w6UKjqeRAs0bugvKqsqrVNrtb68PcldIBrK0SY=; b=Qg/wTRjhbzdJJMvMdlcrOn7NxsuBTzCzNKP39i+dRBWTj4fP+n5dTiJiJJgmBa8dyf PF+dWDPI2UlDHJ4ocNXIgJ5Y4fh77TPqmzFfeybk8V3fts6/1aLUJINoiVVRLDBDQf8m 7gofiIKKwF5YWXY8SIKD0SricGCdMzcuqkT50/gTqiKXgkFKdAnidKP6d6vUbZTXZDEv ay2/uBEfoMJ2n+dW2AWybouZK7A611wGoKXjEaPeRnU4st9zhfcCwcUbo2/Y8eBxlg5r dGwE8MsGdJ1Vt+30G/qy+wuR15t8Dery7AKfC4PV0WC0f+jrExxjSqYKmA6eb5f0BmIS 54/g== X-Gm-Message-State: AOJu0Yx1MtdcPIm4baz7G916HAz6/HLPNuhUiBFJYxph320jqTrxltNx 5NjdZ9IJPwnk1JBaHuO6J9w/scNqCNxZ7D/XThoVejE= X-Google-Smtp-Source: AGHT+IGKWQoABF0XzOhGF1oZybBOPz3z9+szL4vj9cTtvyLIhV51vO/aeIFDKwfbLtCuH6i2pwiuQLzxPbWLhN9sk8g= X-Received: by 2002:adf:cc86:0:b0:333:d3a:f113 with SMTP id p6-20020adfcc86000000b003330d3af113mr3549478wrj.68.1701261171147; Wed, 29 Nov 2023 04:32:51 -0800 (PST) MIME-Version: 1.0 References: <1BA05C1A-AFAE-4E86-BAA2-420B22549519@gmail.com> <0D8856BC-DDEE-47F8-8C59-7F4DC7A64237@woofle.net> In-Reply-To: Date: Wed, 29 Nov 2023 21:32:37 +0900 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ? From: youkidearitai@gmail.com (youkidearitai) 2023=E5=B9=B411=E6=9C=8829=E6=97=A5(=E6=B0=B4) 21:16 youkidearitai : > > 2023=E5=B9=B411=E6=9C=8829=E6=97=A5(=E6=B0=B4) 20:42 Hans Henrik Bergan <= divinity76@gmail.com>: > > > > i think Shift_JIS can also be automatically converted to UTF-8, does > > this seem right? > > https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce8211= 95816a8d24e23f6 > > > > Sorry if it's harsh, not right. > Shift_JIS is very ambiguous, What will we do if SJIS-2004 or SJIS-win com= es? > How do we guess(detect) SJIS-2004, SJIS-win and SJIS-mac? > > // Comparison table from https://uic.io/en/charset/compare/shiftjis2004/c= p932/ > var_dump("\xfc\x40"); // What is 0xFC40, =E9=A8=B1(SJIS-2004) or =E9=AB= =9C(SJIS-win)? > ?> > > In the first place, We **should not** change PHP script character encodin= g. > In addition to this, We have to think about various things. > This is not just a Japanese problem. > > -- > --------------------------- > Yuya Hamada (tekimen) > - https://tekitoh-memdhoi.info > - https://github.com/youkidearitai > ----------------------------- I'm sorry if offend and reposting. The problem is easy understand. What do we detect ISO-8859 series? Regards Yuya --=20 --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai -----------------------------