#33198 [Asn->Fbk]: Leading UTF-8 byte order mark yields different character encodings in output

From: Date: Sun, 13 Nov 2005 19:39:34 +0000
Subject: #33198 [Asn->Fbk]: Leading UTF-8 byte order mark yields different character encodings in output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88109@lists.php.net to get a copy of this message
ID: 33198 Updated by: moriyoshi@php.net Reported By: Bjorn dot Wiberg at its dot uu dot se -Status: Assigned +Status: Feedback -Bug Type: mbstring related +Bug Type: *General Issues Operating System: * PHP Version: 5CVS-2005-06-21 Assigned To: moriyoshi New Comment: Try downloading the raw content to your local workspace with a tool like wget / curl. curl -o utf8_bug.html http://www.anst.uu.se/bwiberg/php/utf8_bug.php wget -o utf8_bug.html http://www.anst.uu.se/bwiberg/php/utf8_bug.php And then open it with a browser to see what shows up on the screen. If the display is correct, then it's not a PHP / Apache issue, but the one caused by the browser's misbehaviour. Not a mbstring issue anyway. Previous Comments: ------------------------------------------------------------------------ [2005-06-27 09:33:50] Bjorn dot Wiberg at its dot uu dot se Hi again! Sorry, but this is not connected to mod_cgi in any way. We're not using PHP through mod_cgi, but as a handler. Apache does not have a problem serving the page -- instead it seems that the error only occurs when the file is being processed by the PHP handler. Best regards, Björn ------------------------------------------------------------------------ [2005-06-27 00:59:30] tony2001@php.net Check out this Apache bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=16687 ------------------------------------------------------------------------ [2005-06-21 17:28:22] Bjorn dot Wiberg at its dot uu dot se Hi again! I just tried the 2005-06-21 10:30 snapshot, but the problem persists. Best regards, Björn ------------------------------------------------------------------------ [2005-06-19 00:50:45] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-06-16 14:44:03] Bjorn dot Wiberg at its dot uu dot se Hi! Please try the following: http://www.anst.uu.se/bwiberg/php/utf8_bug.phtml ...exhibits the bug randomly just like *.php. When in error, the output looks like this: http://www.anst.uu.se/bwiberg/php/utf8_bug_result3.txt http://www.anst.uu.se/bwiberg/php/utf8_bug.html ...does not exhibit the bug; output does not get re-encoded in any way, i.e. UTF-8 characters remain UTF-8: http://www.anst.uu.se/bwiberg/php/utf8_bug_result4.txt It appears that something happens to the output (sometimes) when PHP parses the file. Best regards, Björn ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33198 -- Edit this bug report at http://bugs.php.net/?id=33198&edit=1

« previous php.bugs (#88109) next »