Try something like this, I used google to find other encodings...
public static String SGetCurrencyDisplayString(FormatStyle iFormat,
String iCurrency)
{
if (Constants.GREAT_BRITIAN_POUND_CURRENCY.equals(iCurrency))
{
return "\u00A3";
}
else if (Constants.EURO_CURRENCY.equals(iCurrency))
{
return "\u20AC";
}
...
}
On Mar 3, 1:34 am, arjanDOTTYbroerATgmailDOTTYcom
<[email protected]> wrote:
> Hi all,
> For a demo to convince other developers of Android i am creating a tip
> calculator. I'm having problems though in displaying a currency sign
> using a currency format.
> When using a DecimalFormat.getCurrencyInstance(), all values formatted
> using that formatter are formatted with a dollar sign ($).
> Then when i use the DecimalFormat.getCurrencyInstance(new Local("nl-
> NL")) or DecimalFormat.getCurrencyInstance(Local.GERMAN) it should use
> the euro sign. The formatted has a strange block character though.
> Question is: Does Android support the euro sign? And how should i be
> using this.
>
> System info:
> Ubuntu Linux
> Eclipse 3.4.1
> Android Development Kit 0.8.0
>
> Regards,
> Arjan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---