Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem parsing quotes

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
Hi,
I have an asp which reads data from a database and writes the rows out to a table. some of the database data contains quotes.
it seems that: response.write rs("myfield") doesn't understand or know how write out data with quotes b/c when quoted data is encountered the table borders go all over the place.
Does anyone know how to treat quotes in data being read and written out to the page?

thanks




 
Hi.

Did you try the following? Example:

<Script Language=&quot;JavaScript&quot;>
function wr()
{
var strString=&quot;This text contains \&quot; quotation mark&quot;;
alert(strString);
}
</Script>
Result : This text contains &quot; quotation mark

Try to replace all of the quotations inside your database to \&quot; and try after.

regards, Kirilla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top