encoding problem?

Discussion in 'Java' started by ptan, Jul 31, 2003.

  1. ptan

    ptan Guest

    Hi there, need your help.

    I have a program accept users' file.
    then, the file content's as a string object.
    then, it will generate a java source file.

    when i compile the generated java source file -- it throws illegal escape
    character errors.

    any idea?
     
    ptan, Jul 31, 2003
    #1
    1. Advertising

  2. ptan

    Roedy Green Guest

    On Thu, 31 Jul 2003 12:35:35 +0800, "ptan" <> wrote or
    quoted :

    >when i compile the generated java source file -- it throws illegal escape
    >character errors.


    To answer that question you would have to show us the generated line
    the compiler is complaining about.

    For legal escape sequences see
    http://mindprod.com/jgloss/literals.html

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Jul 31, 2003
    #2
    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. Slade

    Problem encoding/decoding image

    Slade, Jun 25, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,119
    Natty Gur
    Jun 25, 2003
  2. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    18,873
    Jon Skeet [C# MVP]
    Jun 9, 2004
  3. Replies:
    1
    Views:
    23,374
    Real Gagnon
    Oct 8, 2004
  4. Greg
    Replies:
    9
    Views:
    820
    Nobody
    Oct 8, 2011
  5. Replies:
    2
    Views:
    374
Loading...

Share This Page