The Ant manual is here: http://ant.apache.org/manual/index.html
Unfortunately, I can't link directly to the javac task without losing the navigation panes, but it's under Core Tasks / javac You want the encoding= attribute on the javac task. Why on earth someone would put encoding="ascii" on a Javac task is beyond me. UTF-8 is a direct superset, and what I encourage *EVERY* Java developer to use, exclusively. Maybe Google is trying to encourage English as a common language. You can fix it in your individual build.xml, or you can fix it in the template file in the SDK (for each platform version you download) in templates/android_rules.xml. In Eclipse, you'll want to go to Windows / Preferences / General / Workspace and set the Text File Encoding to UTF-8. It defaults to whatever your platform makes the default, which I claim isn't a good idea for developers; we seldom develop exclusively for a single platform these days, and our users are likely to have a different setting anyway. The only sane approach is to use UTF-8 everywhere. Think of it as a little ritual that every developer needs to go through when setting up a new development environment or tool -- make sure all the tools are using UTF-8. On Feb 8, 4:27 am, paulbutcher <[email protected]> wrote: > Apologies if this is a stupid question - I'm an Android and Ant > newbie. > > I have utf8 encoded source files that I need to compile with the > Android Ant build system. By default, the encoding is set to ascii. > I'd be very grateful for a pointer to whatever I need to do to let the > build system know that my files are utf8. > > Incidentally, it works fine if I build in Eclipse, but I need to build > from the command line. > > Thanks! > > paul.butcher->msgCount++ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

