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. Advertisements

  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. Advertisements

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,279
    Natty Gur
    Jun 25, 2003
  2. feng zhu
    Replies:
    2
    Views:
    1,242
    Joerg Jooss
    Nov 1, 2003
  3. Jan Agermose

    Mail encoding problem

    Jan Agermose, Nov 26, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    5,934
    Jacob Yang [MSFT]
    Nov 27, 2003
  4. Calvin Lai

    Encoding problem

    Calvin Lai, Dec 31, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    452
    Teemu Keiski
    Jan 1, 2004
  5. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    19,795
    Jon Skeet [C# MVP]
    Jun 9, 2004
  6. Replies:
    1
    Views:
    24,357
    Real Gagnon
    Oct 8, 2004
  7. Greg
    Replies:
    9
    Views:
    996
    Nobody
    Oct 8, 2011
  8. Replies:
    2
    Views:
    665
Loading...