Re: not seeing single quotes and double quotes in php. Appear as ? instead.
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 17:17:54 -0400
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
==================
.
- References:
- Prev by Date: not seeing single quotes and double quotes in php. Appear as ? instead.
- Next by Date: Re: Seeing encrypted code in php
- Previous by thread: not seeing single quotes and double quotes in php. Appear as ? instead.
- Next by thread: Re: not seeing single quotes and double quotes in php. Appear as ? instead.
- Index(es):