ID: 21614 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Closed Bug Type: *General Issues Operating System: Various PHP Version: 4.3.0 New Comment:
With some embarrassment, I now discover that this is actually MSIE's fault after all. I did test a minimal case before I submitted the bug, but unfortunately missed out one crucial detail. I'm closing this bug (mea culpa), but perhaps a hint could be added to documentation at some point to prevent people falling foul of the same issue? If you set the charset on your content-type in the _source_ document (presumably via HTTP, and definitely using meta http-equiv in an HTML document), MSIE will entity-escape any characters falling outside that charset for any form submissions from within that document. Mozilla/NSN6+ doesn't do this, and I don't think it's unreasonable to assume this is just another weird MSIE bug. Presumably setting the charset to UTF-8 will prevent IE from escaping any characters. (That runs into difficulties with the most common configuration of PHP + mysql, however.) Apologies for pointing the finger in the wrong direction ... :-( Previous Comments: ------------------------------------------------------------------------ [2003-01-15 15:54:54] [EMAIL PROTECTED] Does it only happen with multipart/form-data posts? Can you give us a short, simple script? ------------------------------------------------------------------------ [2003-01-15 05:06:09] [EMAIL PROTECTED] Verified as still present in 4.3.0 without mbstring enabled running on Solaris. ------------------------------------------------------------------------ [2003-01-13 19:01:20] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2003-01-13 07:29:01] [EMAIL PROTECTED] Entering non-ASCII data (eg in ISO-8859-1) using MSIE 6 and 5.5 (possibly others) via an HTTP POST (multipart/form-data, perhaps others) request to PHP 4.2.3 as a dynamically-loaded Apache (1.3 series) module causes the non-ASCII characters to be HTML entity escaped. eg: étan -> étan This does not happen with Mozilla 1.2b (20021016), and did not happen with PHP 4.1.2 (with mbstring enabled). It happens with both mbstring enabled and disabled on PHP 4.2.3. It has been observed on Debian GNU/Linux, FreeBSD and WinXP. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21614&edit=1