Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121857 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6909 invoked from network); 29 Nov 2023 11:42:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Nov 2023 11:42:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F3DB18003C for ; Wed, 29 Nov 2023 03:42:59 -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=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,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-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (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 03:42:59 -0800 (PST) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1fa22332ca1so357504fac.1 for ; Wed, 29 Nov 2023 03:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701258170; x=1701862970; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TCzaleYwpXLRSD6nm02f89mbhYt2hUvxNmZ/OMKElSk=; b=I0utoA+pgohRrpUW9D3Ubwv4+QwU2qEYX6tK5T8CF6Uam2ju+qc1Y0uU2wdrAFDUJD ulUHV0Mb0oySUQq+viW2aYAnqPDDe7EC6oMIEFdnVQ83MUXzQeiTKuRLZyYN4544mMU/ WilXY0DxGhmkYFDVwRNS7XvhCo2WVvHYmDL47W43qXG1KXlnTzECEq9oBo2+rz1Wlp5q VzoN5oIzhxcM+jwX6DehM5TsbMl3GGu2YOh2UmASYq9IIdsB7wb5owGL3GxhtxFXCFRR UdUh532MY5BivVFATWditONF56u+G0ylBDJ9UaF1m0lXgdsJjHRo4w/f9HsZ625SomLQ iO+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701258170; x=1701862970; h=content-transfer-encoding:cc: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=TCzaleYwpXLRSD6nm02f89mbhYt2hUvxNmZ/OMKElSk=; b=DH4RuRYlY/+jhZv0W4M44dpXwddpogRBHBW5H/B0kY3ATBYZDpmKjMOIJZJC44BKvS S2VDBJV0eSSFig7lArCuPPZVOJYlpS8dGAWrBDdzPrenxBkUilkLJnMsoxdcwlEDtai1 nH3WDzT460V/s7aSQOH7VrpJ3fDolaHK3SktyJZk3jDGQboz9TwvVG2uzy3OMR4z6VP9 zJlpjlHTFYObgLYcYOd+jy3fHXxPh+ZSBmxwHASDLap3g2uJlmCZIR246klAIAlJ293d W33TnJLfmyAlhN2JVnp4nNpoTZhvMi3fcMvY49Ahw9e7vLn9WSFAIgeoU4guR7KxCopm TeMA== X-Gm-Message-State: AOJu0YwhuUpnIrG1XUieJ1Y6cyGkeO4R6bKML/3GkwpmmGCRCBf7HG8Y eMj69/btuIpxrQyncbYXyoBFPV+KSbTyWXtl/ccoJzrZaeGYvQ== X-Google-Smtp-Source: AGHT+IEcmGttKQTziUd4R3Rd9O0V9TWIZ3U9jkPaFq2XiFGpdF+LxpmcEGbiApwTE+gRnoDP7lW9/JceRTAIbyQ8d5E= X-Received: by 2002:a05:6870:3b8a:b0:1fa:1c35:ccd5 with SMTP id gi10-20020a0568703b8a00b001fa1c35ccd5mr7746822oab.10.1701258170430; Wed, 29 Nov 2023 03:42:50 -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 12:42:13 +0100 Message-ID: To: youkidearitai Cc: 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: divinity76@gmail.com (Hans Henrik Bergan) i think Shift_JIS can also be automatically converted to UTF-8, does this seem right? https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce82119581= 6a8d24e23f6 On Wed, 29 Nov 2023 at 01:21, youkidearitai wrote= : > > > Use zend.script_encoding=3Dsjis and zend_bultibyte=3Dtrue > > > > =E2=9D=AF ~/php82/bin/php -d zend.script_encoding=3Dsjis -d zend.multi= byte=3Dtrue > > deprecate_zend_scriptencoding.php > > array(7) { > > ["biao_hex"]=3D> > > string(6) "e8a1a8" > > ["zend.multibyte"]=3D> > > string(1) "1" > > ["zend.script_encoding"]=3D> > > string(4) "sjis" > > ["zend.detect_unicode"]=3D> > > string(1) "1" > > ["mbstring.internal_encoding"]=3D> > > string(0) "" > > ["mbstring.func_overload"]=3D> > > bool(false) > > ["PHP_VERSION"]=3D> > > string(5) "8.2.8" > > } > > > > Strictly, include internal_encoding. > > =E2=9D=AF ~/php82/bin/php -d zend.script_encoding=3Dsjis -d > internal_encoding=3Dsjis -d zend.multibyte=3Dtrue > deprecate_zend_scriptencoding.php > array(7) { > ["biao_hex"]=3D> > string(4) "955c" > ["zend.multibyte"]=3D> > string(1) "1" > ["zend.script_encoding"]=3D> > string(4) "sjis" > ["zend.detect_unicode"]=3D> > string(1) "1" > ["mbstring.internal_encoding"]=3D> > string(0) "" > ["mbstring.func_overload"]=3D> > bool(false) > ["PHP_VERSION"]=3D> > string(5) "8.2.8" > } > > -- > --------------------------- > Yuya Hamada (tekimen) > - https://tekitoh-memdhoi.info > - https://github.com/youkidearitai > ----------------------------- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >