Mantis - Quercus
Viewing Issue Advanced Details
1763 minor always 05-28-07 18:08 06-03-07 10:12
nagashima  
 
normal  
closed 3.1.2  
fixed  
none    
none 3.1.2  
0001763: When I used ob_get_contents, a Mojibake occurs
quercus_text.php
----------------------------------------
<?php

$data = "&12371;&12428;&12399;&26085;&26412;&35486;&12391;&12377;";

ob_start();
include "include_test.php";

$outputString = ob_get_contents();
ob_end_clean();

?>
<html>
<body>
output 1 <?php echo $data?> is good

output 2 <?php echo $outputString;?> is mojibake
</body>
</html>

--------------------------------------

include_test.php
-------------------------------------
<?php echo $data?>
-------------------------------------

 mojibake.zip [^] (486 bytes) 05-28-07 18:12

Notes
(0001993)
sam   
06-03-07 10:12   
php/1l0s

The example zip was very helpful, allowing the reproduction of the issue exactly and avoiding mojibake issues that may have occurred using the bug tracker to communicate the problem.