I am trying to generate a CSV file in my application using the code below:
If I open the file in Excel 2007, then I get £
wherever a £
sign should appear.
try {
FileWriter fw = new FileWriter(filename);
fw.append("Item Name");
fw.append(',');
fw.append("Item Sku");
fw.append(',');
fw.append("Tax Rate (%)");
fw.append(',');
fw.append("Item Qty");
fw.append(',');
fw.append("Unit Price (\u20AC)");
fw.append(',');
fw.append("Total Price (\u20AC)");
fw.append(',');
fw.close();
}
catch (Exception e) {
Log.e(getClass().getSimpleName() ,"Error in create CSV File: "+e.getMessage())
}