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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I print quote marks?

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
I want to display this: He said "Hello world".
(With the quote marks)

I tried:
response.write("He said \"Hello world\"")

Assuming I could use the backslash as an escape character but it does not work.

How do I write special characters like the quote?

 
try
response.write chr(34) & "Hello World" & chr(34)
 
Or just use double double quotes :

Response.Write("He said ""Hello World"" ")

This also works Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top