tags:

views:

82

answers:

1

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!

A: 

Take a look at android-sdk-windows\platforms[your-platform]\ant\ant_rules_r2.xml. You can find

<javac encoding="ascii" ...

line there and I guess you can change it.

Fedor