Re: Using double quotes in String literal

From: Bryce (Work) (spamtrap_at_berzerker-soft.com)
Date: 12/17/03


Date: Wed, 17 Dec 2003 07:32:57 -0500

On Tue, 16 Dec 2003 20:03:11 -0500, "Henry R. Whitten Hewitt"
<mail@analogic.net> wrote:

>In my Applet I would like
>to append a set of double quotes
>one on either side of a String literal
>after the literal has been recieved
>to process.
>So if I have: quotes in String
>
>I want the resulting appendage
>to be " "quotes in String"." (literal minus leading & trailing
>space)
>
>I believ this is done with a special
>character. Can anyone help?
>
>Thanks in advance

quotes can be added like this:

String str = "\""

Note the \ to escape the character...



Relevant Pages

  • Re: A critique of cgi.escape
    ... and quotes should always be escaped. ... Making cgi.escape always escape the '"' character would not break ... and would probably fix a few bugs in existing code. ...
    (comp.lang.python)
  • Re: what can i do if i want to include "<" or ">" in xml document.
    ... Sometimes it becomes necessary to escape the quotes and the apostrophe ... Another character to escape almost always is the ampersand character ...
    (microsoft.public.dotnet.xml)
  • Re: Help with Variables that Vary
    ... :: Dim filesys, cfile ... Num ' is the variable we want to append to the text portion of the ... Variables do not have quotes around them so their values can be used. ... without even the implied warranty of merchantability ...
    (microsoft.public.scripting.vbscript)
  • Re: Problem with APPEND FROM .... DELIMITED WITH char
    ... If the quotes aren't necessary, preprocess the file to remove them before ... You can use FILETOSTR, CHRTRAN(), STRTOFILE(), then ... append the new file without the quotes. ...
    (microsoft.public.fox.helpwanted)
  • Using double quotes in String literal
    ... In my Applet I would like ... to append a set of double quotes ... So if I have: quotes in String ... character. ...
    (comp.lang.java.help)