Convert Raw Text Escaped Characters to Characters

Discussion in 'Java' started by nicholas.wakefield@gmail.com, Jul 11, 2005.

  1. Guest

    Hi,

    I've done this before but can't remember how. I have a string which
    contains values like
    "hello\013Goodbye\a"

    The application is putting them into a string but escaping them, so
    they end up as "hello\\013Goodbye\\a

    What I really want is the character '\013' not the string "\013".

    How do I unescape them.

    Thanks
     
    , Jul 11, 2005
    #1
    1. Advertising

  2. Andrew Thompson, Jul 11, 2005
    #2
    1. Advertising

  3. Guest

    Really useful answer, thanks. Now old age can be a problem but I think
    getting up at 5am was the problem today.
     
    , Jul 11, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Petr Jakes
    Replies:
    3
    Views:
    371
    Petr Jakes
    Nov 12, 2005
  2. ldng
    Replies:
    3
    Views:
    1,869
    Tim Golden
    May 10, 2007
  3. Guest
    Replies:
    2
    Views:
    766
    Guest
    Jun 20, 2007
  4. Just Another Victim of the Ambient Morality

    How do I convert escaped HTML into a string?

    Just Another Victim of the Ambient Morality, Nov 24, 2007, in forum: Python
    Replies:
    6
    Views:
    627
    Bruno Desthuilliers
    Nov 24, 2007
  5. Gregory Toomey

    how to convert a string to an escaped string

    Gregory Toomey, Feb 10, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    177
    Bart Lateur
    Feb 12, 2004
Loading...

Share This Page