php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26086 Weird Output
Submitted: 2003-11-02 17:47 UTC Modified: 2003-11-17 18:16 UTC
From: mite_tea_big at hotmail dot com Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.3 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-11-02 17:47 UTC] mite_tea_big at hotmail dot com
Description:
------------
I was trying out different methods to input data from a file.
I was using file_get_contents to read a file, then echo to output the string. The thing is, it seems to be outputting extra characters, mostly asian characters.
It looks as if the html tags and other text are being changed to "?". if I remove all other non-php text, the extra output does not show up.

Reproduce code:
---------------
<?php
	$data = file_get_contents("Library.txt");
	echo $data;
?>
<html>
</html>

text.txt
--------
ABCDEFGHIJKLMONPQRSTUV

Expected result:
----------------
ABCDEFGHIJKLMONPQRSTUV

Actual result:
--------------
ABCDEFGHIJKLMNOPQRSTUVWXYZ ??ԡ&#15980;&#2573;&#12092;???I&#3390;&#3338; 

View Source
-----------
ABCDEFGHIJKLMNOPQRSTUVWXYZ
?????????

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 18:16 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC