Android - Character Encoding with Ant Release

In my application, I write out a list of hard-coded string values ​​from a class in a list, as shown below:

getSalePricesMin().put(40000, "£40,000"); getSalePricesMin().put(60000, "£60,000"); 
getSalePricesMin().put(80000, "£80,000"); getSalePricesMin().put(100000, "£100,000"); 
getSalePricesMin().put(120000, "£120,000"); getSalePricesMin().put(180000, "£180,000");

They are displayed on a standard counter.
When I create an application using Eclipse, the "E" characters are displayed correctly, however I need to release it with ant, and when I do this, I get bad encoding, as shown below.

enter image description here

I tried adding java.encoding = UTF-8 to the ant.properties file, but this does not change.

Can I advise? Thanks guys

+3
source share
1 answer

Good,

Replacing the £ characters for \ u00a3 helped.

getSalePricesMin().put(40000, "\u00a340,000");
getSalePricesMin().put(60000, "\u00a360,000");
getSalePricesMin().put(80000, "\u00a380,000");
getSalePricesMin().put(100000, "\u00a3100,000");
getSalePricesMin().put(120000, "\u00a3120,000");
0
source

All Articles