• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pound symbol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pound symbol


  • Subject: Re: Pound symbol
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Thu, 19 Mar 2009 17:46:24 -0400


On Mar 19, 2009, at 5:39 PM, Q wrote:

What encoding does your .java file have? And when it doesn't work, how was that .java file compiled?

.java files should ALWAYS be UTF-8, because that's what javac expects, however eclipse doesn't care.
My gut feel is that your .java file is MacRoman and when eclipse compiles the class it works, and when javac compiles the class it doesn't.

Yep... I'm leaning towards that too. Here's why:

There are two directories. The "build" directory and the "dist" directory. The compiled class in the "build" directory has the correct characters when I look at it with the decompiler (JD-GUI).

But when I look at the compiled class in the "dist" directory which is where it gets placed when I run ant from the command line, then the characters look wrong in JD-GUI.

So I'm gonna be looking at how the compiler gets told what encoding to use. Does anybody know?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Pound symbol
      • From: "Ricardo J. Parada" <email@hidden>
References: 
 >Pound symbol (From: Gino Pacitti <email@hidden>)
 >Re: Pound symbol (From: Chuck Hill <email@hidden>)
 >Re: Pound symbol (From: Gino Pacitti <email@hidden>)
 >Re: Pound symbol (From: "Ricardo J. Parada" <email@hidden>)
 >Re: Pound symbol (From: Gino Pacitti <email@hidden>)
 >Re: Pound symbol (From: "Ricardo J. Parada" <email@hidden>)
 >Re: Pound symbol (From: Lachlan Deck <email@hidden>)
 >Re: Pound symbol (From: "Ricardo J. Parada" <email@hidden>)
 >Re: Pound symbol (From: Chuck Hill <email@hidden>)
 >Re: Pound symbol (From: "Ricardo J. Parada" <email@hidden>)
 >Re: Pound symbol (From: Q <email@hidden>)

  • Prev by Date: Re: Pound symbol
  • Next by Date: Re: Access Control [was: Digging up a Session object from an EOGenericRecord]
  • Previous by thread: Re: Pound symbol
  • Next by thread: Re: Pound symbol
  • Index(es):
    • Date
    • Thread