Bug #78307 [NEW]: Strange caracter in $_POST with mbstring.encoding_translation = On
From: heidy dot hery at gmail dot com
Operating system: Windows 10
PHP version: 7.3.7
Package: *Unicode Issues
Bug Type: Bug
Bug description:Strange caracter in $_POST with mbstring.encoding_translation = On
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 bug report at https://bugs.php.net/bug.php?id=78307&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78307&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78307&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78307&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78307&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78307&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78307&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78307&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78307&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78307&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78307&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78307&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78307&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78307&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78307&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78307&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78307&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78307&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78307&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78307&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78307&r=mysqlcfg
Thread (5 messages)
- heidy dot hery at gmail dot com