Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105034 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68245 invoked from network); 2 Apr 2019 12:48:01 -0000 Received: from unknown (HELO mail-oi1-f170.google.com) (209.85.167.170) by pb1.pair.com with SMTP; 2 Apr 2019 12:48:01 -0000 Received: by mail-oi1-f170.google.com with SMTP id v10so9927128oib.1 for ; Tue, 02 Apr 2019 02:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0CmJpIa2E4fz5N1J2bLbwtb0xFGS9hcAd5+hpTDZjuQ=; b=fjjFYjUhgufpEvkIchyAdQUL0s+SgZDgomgC5IcZvpLlL6D8HRkyDy2bcGgLfUJHnd XfIQo5dPjprfvmnNmYxP4xfD2NZlUqdovIt3ighZY/uogWCwat3TW4/gwQwMfbNJSlUr Y384YqC8DMBG1s08C5MNXlFuvSZh9CrBp7sGmlcx/TRfLJRtqD7TRqgITLkYuZrNNyRJ 8rbQ7VbZV/FCMiHW180U0jph96bredPfqG4Eyr5cDSFK9ycUGECotAnkXj97MbkOrnZz PReLDOwfOCUExyB0r/Kdw1QhgYxD4F/eZlnOaQw9tQF7e5BAX4MlSlgHwVn8t8TO84Of EQFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0CmJpIa2E4fz5N1J2bLbwtb0xFGS9hcAd5+hpTDZjuQ=; b=CfmnF2QYxKjV5RUsOROS8XR13mH/pK2qsB00FtUF2kthVnq/Wn9hRsTvi7XYpMXIyh mAUZyTGUcY6TUQI84voWalPHU/G+cBVrxxoljIQKDAzXZaLC0RoIeX1pfq1wyL179Xau EGTzQV8/K3MnNxkTo/CE3IedxPNlIjIyN346Q/aLKSzffg+xSq//StOJCe9Npc23m/ee shKD3+EIo0MFyVjCHfoqykWuEz5YrQbAgHXOFjCw7UCVN6kkV+DaS7nVtcE68rSnjpVd y6JTPAbFigedTu3+EwBaXYIhYopsfWzjIwysOUdBNloIFvaStK/yzg9QOfTj5g8Zme1r T3xQ== X-Gm-Message-State: APjAAAUCxRsaLDY0+eTHN6RUM9N2LzZl5v3aQBqL6gscybVoVNq2YiEf scwcwPQF6PKNxJ9IpkAjKRIu8gT2/AZVfnTUAirkSwUr X-Google-Smtp-Source: APXvYqwbXS1ibj4PRQJItJDlklzRLgyUIMLznUkqlGcLLOZzYeX2RrsJmRBanTNsWpYCWm6oZ8kNcZ/IKIiurjqCfIY= X-Received: by 2002:aca:4085:: with SMTP id n127mr15443230oia.93.1554198185455; Tue, 02 Apr 2019 02:43:05 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 2 Apr 2019 11:42:54 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000c13543058588f624" Subject: default_charset and mb_internal_encoding From: nicolai.scheer@gmail.com (Nicolai Scheer) --000000000000c13543058588f624 Content-Type: text/plain; charset="UTF-8" Hi list, I'm currently in the process of migrating an old application from php 5.6 to 7.2. In the process, I fiddled with the default_charset ini setting. The documentation states (c.f. https://www.php.net/manual/en/ini.core.php#ini.default-charset): "In PHP 5.6 onwards, "UTF-8" is the default value and [...] The value of default_charset will also be used to set the default character set for [...] and for mbstring functions if the mbstring.http_input mbstring.http_output mbstring.internal_encoding configuration option is unset." As such, I'd expect to be able to set default_charset to iso-8859-1 and mbstring to pick that same setting for its internal encoding (if the mentioned directives are unset, that is). This seems not to be the case: