Bug #78307 [Opn->Fbk]: Strange caracter in $_POST with mbstring.encoding_translation = On

From: Date: Wed, 17 Jul 2019 16:17:20 +0000
Subject: Bug #78307 [Opn->Fbk]: Strange caracter in $_POST with mbstring.encoding_translation = On
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221846@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78307&edit=1 ID: 78307 Updated by: requinix@php.net Reported by: heidy dot hery at gmail dot com Summary: Strange caracter in $_POST with mbstring.encoding_translation = On -Status: Open +Status: Feedback Type: Bug -Package: *Unicode Issues +Package: mbstring related Operating System: Windows 10 PHP Version: 7.3.7 Block user comment: N Private report: N New Comment: What's the value of your default_charset setting? Are your pages being served in UTF-8 encoding or something else? Previous Comments: ------------------------------------------------------------------------ [2019-07-17 15:16:06] heidy dot hery at gmail dot com Description: ------------ Description : When I use multipart/form-data for posting data to the php side. The $_POST variable output strange caracter like "réveiller". in place of "réveiller". But I've tested two sites. with the same Apache/PHP configuration... and on the first site, multipart/form-data work correctly, but not on the second site... it's a very strange and non stable behaviour. the php.ini configuration was as follow : mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.encoding_translation = On I've made a test with enctype="application/x-www-form-urlencoded" and the data showed correctly in the $_POST array. So in order to have the correct behaviour with enctype="multipart/form-data", I've to set the following value in php.ini mbstring.internal_encoding = UTF-8 mbstring.http_input = UTF-8 mbstring.encoding_translation = Off Now all is working correctly. my php version is 7.3.5 apache 2.4.39 Windows 10 x64. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78307&edit=1

« previous php.bugs (#221846) next »