characters added when reading temp file
<p>when i do a direct input feild as text the input comes through fine but when i change the input feild type to "FILE" and then read the temp contents stored on the server it adds extra characters that are "unknown"</p>

<pre><code>$fileName = $_FILES['userfile']['name'];
$tmpName  = $_FILES['userfile']['tmp_name'];
$fileSize = $_FILES['userfile']['size'];
$fileType = $_FILES['userfile']['type'];

$fp = fopen($tmpName, 'r');
$content = fread($fp, $fileSize);
fclose($fp); 

echo $content;
</code></pre>

<p>Its most probably to do with secuirty but how do i change the content so it reads normal? In firefox it comes up with square boxes for most characters with the letters:
Here is an example:</p>

<p>Its meant to say:
"Dirty Rocker" but instead comes out like this: "D�i�r�t�y� �R�o�c�k�e�r"</p>

<p>Hope you can help!</p>
