Re: not seeing single quotes and double quotes in php. Appear as ? instead.



raj wrote:
Hi all,

I'm using this code to import some a .txt files onto a webpage, but I keep seeing single quotes amd double quotes as question marks.

Here's the code:

<textarea disabled="disabled" name="textarea2" cols="70" rows="7" wrap="virtual"><?php addslashes(include("../license/license.txt")); ?>
</textarea>

Can someone tell me where I'm going wrong?

Thank you in advance,

Raj (newbie)



addslashes() is the wrong function in this case. Look at htmlspecialchars() or htmlentities()

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.