[program-java] Re: Java: Escape Sequence

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: "'program-java@xxxxxxxxxxxxx'" <program-java@xxxxxxxxxxxxx>
  • Date: Thu, 14 Oct 2010 15:55:55 -0400

Steve:

I did post the string in my message to you. However in the mean time we got 
it... We had to revert back to the ancient language VB and used the double 
ampersand symbol &&.

Jim

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Steve Meacham
Sent: October 14, 2010 15:50
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: Java: Escape Sequence

Jim,

The ampersand's ASCII decimal value is 38.  In windows resource files, I'd use 
the ampersand to indicate which letter in a label should be the hot-key.  But 
they were always within quotes, and gave me no problems.  If that doesn't put 
you on the right track, posting the line of "code" with the ampersand in it 
could help.


On Thu, Oct 14, 2010 at 2:41 PM, Corbett, James <James.Corbett@xxxxxxxxxxxxx> 
wrote:


        Steve:

        Tried this in my string but it just printed it as though it were part 
of the string.

        pstar-d.caption.022=Unrecoverable GST &amp; fed part of HST


        -----Original Message-----
        From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Steve Meacham
        Sent: October 14, 2010 15:34
        To: program-java@xxxxxxxxxxxxx
        Subject: [program-java] Re: Java: Escape Sequence

        &amp;


        On Thu, Oct 14, 2010 at 2:31 PM, Corbett, James 
<James.Corbett@xxxxxxxxxxxxx> wrote:



               Hi:

               ...back to the resource file again. I'm trying to print the 
ampersand symbol (&) to a screen but it's coming up weird. Does anyone know the 
Escape Sequence for this character?

               Jim

               James M. Corbett

               Programmer / Analyst |
               Canada Revenue Agency | Agence du revenue du Canada
               875 Heron Rd.
               Ottawa, On.
               K1A0L5

               James.Corbett@xxxxxxxxxxxxx
               Telephone | Téléphone: (613) 941-1338
               Facsimile | Télécopieur: (613) 941-2261

               Government of Canada | Gouvernement du Canada






        --


        Steve Meacham

        +1 (202) 455-8732
        routes all calls and text messages to me








--


Steve Meacham

+1 (202) 455-8732
routes all calls and text messages to me


Other related posts: