Show Currency Symbol on Mac

hii
I have created a java application using swing. It takes the regional setting of system and based on it, it sets the currency symbol with price value. It works fine on Windows and Linux but When I try to run it on Mac, and I changed the regional setting to UK but It shows US currency symbol. Here is my code to get the currency symbol:
DecimalFormatSymbols objDecimalFormat;
objDecimalFormat = new DecimalFormatSymbols();
String mstrCurrSymbol = objDecimalFormat.getCurrencySymbol();Can anyone please tell me why is it not working on Mac.
Thanks in advance
Sonal

On MAC OS, when the jar file is run, it always detects the Locale as en_US and therefore shows the USD as currency and US English as default language. The code that we are running for testing is:
Locale lclLanguage;
lclLanguage = new Locale(Locale.getDefault().getLanguage(),Locale.getDefault().getCountry());
String strNumberFormat = NumberFormat.getCurrencyInstance(lclLanguage).getCurrency().getSymbol(lclLanguage);
JOptionPane.showMessageDialog(null, "Number format: " + strNumberFormat);
ResourceBundle rbLangBundle = null;
JOptionPane.showMessageDialog(null, "Country: " + lclLanguage.getCountry() + "\r\n" + "Display country: " + lclLanguage.getDisplayCountry() + "\r\n" + "Display Language: " + lclLanguage.getDisplayLanguage() +
        "\r\n" + "Display name: " + lclLanguage.getDisplayName() + "\r\n" + "Display variant: " + lclLanguage.getDisplayVariant() + "\r\n" + "ISO3Country: " + lclLanguage.getISO3Country() + "\r\n" +
        "ISO3language: " + lclLanguage.getISO3Language() + "\r\n" + "Language: " + lclLanguage.getLanguage() + "\r\n" + "Variant: " + lclLanguage.getVariant());
rbLangBundle = ResourceBundle.getBundle("MessagesBundle", lclLanguage);
JOptionPane.showMessageDialog(null, "OS: " + System.getProperty("os.name"));
DecimalFormatSymbols objDecimalFormat;
objDecimalFormat = new DecimalFormatSymbols();
JOptionPane.showMessageDialog(null, "Decimal symbol: " + objDecimalFormat.getCurrencySymbol() + "\r\n" +
        "Decimal separator: " + objDecimalFormat.getDecimalSeparator()  + "\r\n" +
        "Grouping seperator: " + objDecimalFormat.getGroupingSeparator() + "\r\n" +
        "Percentage: " + objDecimalFormat.getPercent());
The code works fine on different regional settings on Windows machine. However while testing the same on MAC it will always show US English irrespective of what is set in the preferences section. We have about 10 language files which needs to be used based on the Locale that is set on the client’s machine.

Similar Messages

  • Help on showing currency symbol for '?'

    SQL>select * from nls_database_parameters;
    PARAMETER VALUE
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_RDBMS_VERSION 9.2.0.7.0
    20 rows selected.
    SQL> select * from xxx_currency;
    CUR CUR
    USD $
    USD $
    JPY Y
    GBP #
    CAD $
    EUR ?
    AUD $
    RMB X
    EUR ?
    CHF ?
    10 rows selected.
    how can i see the actual curency symbol for the eur,chf which is coming as '?'.
    Thanks

    There are (at least) two potential issues:
    1. The NLS_LANG settings of the client who has stored the data in the database was wrong and therefore the data in the database is not stored correctly.
    2. The NLS_LANG setting of your client that you're using to retrieve the data has the wrong NLS_LANG setting. Therefore an incorrect or no conversion is performed from server to client.
    What client are you using? Probably Windows?
    You can retrieve your current NLS_LANG setting by using the following command in SQL*Plus:
    @[%NLS_LANG%]This will show you something like:
    Unable to open file "[GERMAN_GERMANY.WE8MSWIN1252]"which shows you within the square brackets the current client NLS_LANG setting which is probably coming from the registry under Windows. It's only rarely defined as environment variable which would take precedence over the registry setting if defined.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Page 1 missing Currency Symbol

    Hello Guys,
    I have a financial report, and I need to show currency symbol once on every page (first line on every page).
    I go to the Number tab on the field format, click Customize, then select the "Currency Symbol" tab and check 2 options - "Enable Currency Symbol" & "One Symbol per page". When I ran the report, the currency symbol appears on every page but NOT on the first page.
    What can I do to fix this issue?
    Thank you,
    Tanya.

    I need to add that the amounts are Summary fields in the Group section.
    When I tried to use the same currency logic : "Enable Currency Symbol" & "One Symbol per page" on the Detail level - I got the first page with Currency and all other pages without currency symbol.

  • Currency symbol not shown when loaded report using JRC

    I'm trying to show the currency symbol in the report file. the .rpt files is already designed with MS Access table but now im reusing the report and populating pojo classes to map with tables. the report that is bound with MS Access table shows currency symbol in currency fields. but when I load report with JRC, it is not showing. I tried to change Fieldformat also programattically as below.
    ReportObjectController reportObjectController = report.getReportDefController().getReportObjectController();
    ReportObjects reportObjects = reportObjectController.getReportObjectsByKind(ReportObjectKind.field);
    if (reportObjects != null && !reportObjects.isEmpty())
                     for (int i = 0; i < reportObjects.size(); i++)
                         IReportObject reportObject = reportObjects.getReportObject(i);
                         if (reportObject instanceof IFieldObject)
                             IFieldObject fieldObject = (IFieldObject) reportObject;   
                                IFieldFormat ifFormat = fieldObject.getFieldFormat();
                             ifFormatObject = (IFieldFormat) ifFormat.clone(true);
                             break;
    for (int count = 0; count < tables.size(); count++)
                        // Set data source for each table
                        setDataSourceForEachTable(tables.getTable(count).getAlias());
    reportObjectController = report.getReportDefController().getReportObjectController();
    reportObjects = reportObjectController.getReportObjectsByKind(ReportObjectKind.field);
    if (reportObjects != null && !reportObjects.isEmpty())
             for (int i = 0; i < reportObjects.size(); i++)
                 IReportObject reportObject = reportObjects.getReportObject(i);
               if (reportObject instanceof IFieldObject)
                             IFieldObject fieldObject = (IFieldObject) reportObject;   
                             if (fieldObject.getFieldFormat().getNumericFormat() != null)
                                  fieldObject.setFieldFormat(ifFormatObject);
                                  //fieldObject.setFieldValueType(FieldValueType.currencyField);
                                  break;

    Above code just get one of the currency field and clones the format. And after setting the pojo datasource, I'm again setting the cloned format to that particular field. But still  Im not getting currency symbol in the reports that are loaded via JRC. even I set locale before opening the report. but that also not helping.
    report.setLocale(Locale.UK);
    report.open(reportName, 0);
    Please guide me, If I'm wrong in this.

  • £ currency symbol preceded by 'A'

    Each time I include a £ currency symbol in iWeb and upload to my site the online version shows a 'A" (with a hat on) symbol in front of the £. Probably a simple answer to this but I can't find it. I have no problems with $ but unfortunately £ is my currency. Any suggestions gratefully received

    Normally that means that your server is misconfigured. See the server settings section of this note:
    http://homepage.mac.com/thgewecke/iwebchars.html
    Provide your url for confirmation.

  • Missing currency symbol: CHF

    Hi - Has anyone figured out how to edit the list of currency symbols?
    I need to write an invoice in Swiss Francs and all I get in the provided list is "SwF" (does anybody actually use that?) - the symbol I'm looking for reads "CHF". I'm hoping Apple will update that in the next version - but is there a possibility for me to enter a new symbol in the meantime?
    Please do let me know if you hava an idea. Many thanks!

    Update to my previous post:
    After studying macfreek.nl's hint, messing around with various settings, figuring out how to escape non-printing Unicode characters, executing obscure Terminal commands, re-editing plist files (Pref Setter rules!) etc. etc., this is what I've found out:
    • There was no way to change the default currency symbol in Numbers.app 1.0 from "SFr." to "Fr ", no matter what I did. I even searched inside the Numbers.app package, found nothing. (I didn't install Numbers.app 1.0.1 yet.)
    The other things are actually slightly off-topic, i.e. not related to Numbers.app:
    • Following the hints mentioned above it should be possible to change the currency symbol to "Fr " (or whatever) in most other applications. Just avoid to change your setting in the International PrefPane back to the default Swiss format.
    • The cause of the "Leading zero for seconds missing" bug lies somewhere else than I thought, although I haven't found the exact cause. I have found a way how to avoid it, though: After you have set your time format in the International PrefPane to the default "Schweiz" format and you'd like to get rid of the ubiquitous and superfluous " Uhr" suffix, click on the button to adjust the time format, remove the "vorm." and "nachm." suffixes and don't change anything else in there.
    To check if your Mac suffers the leading zero bug, launch Script Editor and paste the following code:
    +tell current application+
    repeat
    +get current date+
    +delay 1+
    +end repeat+
    +end tell+
    Enable the Event Log and let the script run for a while, it will print the current time in the Event Log window every second. If the time you get is like "14:01:05", all is fine. If you get "14:01:5", there's the bug.
    • Actually there was a bug in Swiss German Date formats, too, I just don't remember how to reproduce it anymore (I noticed it last year). All I recall is, that carbon apps weren't able to show a short date format like "29.9.07", they would always show the full year like "29.9.2007". I'm not sure what I've changed since then.
    • When you set your Date format to Swiss German, for example FileMaker 9 reads the system date format as "29/09/2007" instead of "29.09.2007". Doesn't happen if you use the German German date/time/number formats.
    I have written an AppleScript for my personal use to run a couple of "defaults write" Terminal commands to set quickly some of my favorite International number/time/currency formats in case they'd get lost again. I just need to tweak the script a bit more so it will give the average user more choices of what (s)he needs to change - since I don't expect everyone to like my personal Swiss formats...
    When it's ready for the public, it will be available at http://www.loukash.com/en/download/sub06.html and at macupdate.com

  • Changing Currency Symbol

    Since 1st January our country entered the Eurozone, so our currency has changed to Euro. I tried to change the symbol of our currency from Lm to Euro but some how I could not find where to custimize the numbers. I know I did it before because now it is Lm, that is the symbol of the Maltese Lira but it seems that the number customization has benn moved. Would appreciate any hep.

    Hi, thanks for answering my question. However the problem is not where to find the € symbol. In the Mac OS preferences I customised the numbers so that it would show the Lm sign, that is for the Maltese Lira. That way applications such as MYOB plus used to recognise the symbol from the OS and use it. Now that we have changed to Euro, I need to change the Lm sign in the preferences to €. But I cannot find from where to change it. I changed the currency to Euro, but for the symbol, my Mac still shows Lm. Usually there used to be a customization tab for numbers. Now I could not find it.

  • Crystal Reports Currency Symbol Problems

    Hi
    I have a report that displays a currency field. I have formatted this field to display a custom currency symbol ( 'R' in my case). The report runs fine on my machine but as soon as upload it to our server the currency sysmbol changes to '$'.
    What am i doing wrong?

    Hi ,
    We didn't solve this yet. İt is so important for us.
    We have run on WMVare windows 7 sql server 2008, visula sd 2010 framework 4.0 crytal report viewer 13.7.
    Until now it run on std server and our local it is not problem. But now we are run on WMVare it doesn't show true sysbol.

  • Removing Currency Symbol in PLD & Dot Matrix printer issue

    Hi All
    I need to know if its possible to remove the currency sysmbol on your print out. I'm printing on a pre-printed stationery and the currency symbol makes the lines to overlap.
    Aonther question is , which font format can you select to for printing when you are using dot matrix printer (OKI Microline 3321 9 Pin Printer)
    When its printing it's printing in bold and on the invoice after the second one , it looses the margin setting and prints on the wrong fields.
    Thanks.
    Bongani
    ( South Africa)

    I tested the Amount function and it works perfectly for your need.
    Add a formula field and in the Content Tab insert the Formula as
    Amount(Field_198)
    Here the Field_198 is shown as an example but you will enter the Field number of the amount field which currectly shows with the currency in your PLD.
    For each such amount field you will need a Formula field to remove the currency symbol.

  • Indian Currency Symbol in PLD

    Iam using SAP 8.8 PL 13. I have downloaded the Indian rupee font and updated the same in System Initialisation->General Setting-> Fonts. Also under setup->Finance->Currency, I have mapped the new Indian currency along with its symbol/code. In my transactions i can see the currency symbol along with the price, but in the PLD I cannot. Foreign currency symbols like Dollar and Pound are visible both at the transactiona level as well as PLD. How to map the new Indian currency symbol in PLD?
    Rgds
    Kalli

    Hi..
    I think you might have taken Variable Field on PLD & try to take Database Field it will show you RS. Currency Symbol
    Regards,
    Bhavank

  • Currency symbol in email notification

    Hi all-
    I need to display the currency symbol in the outlook email notification sent by workflow. If the country is US, then it should show dollar sign ($) infront of the amount (like: $ 100)
    I can display it for US, but while displaying it for Europe, i am having problem in diplaying the currency symbol. Please provide your inputs.
    Vinoth

    Hi,
    unless you change it to HTML I don't think you can do this.
    There is an SAP note about this "feature"
    Maybe they fixed it now, I don't know, so just search OSS on how to solve your problem.
    Usually I just use the currency key, USD, or EUR to display values
    Kind regards, Rob Dielemans

  • Currency symbol in front of value

    In the Lead screen - for Potential Volume (currency type), in our case we enter the value (f.e 5000) and it is shown as 5000 R$, meaning our currency symbol...after the value.
    Would it be possible to change this format...and show the currency symbol in front of the value ? like: R$ 5000
    Txs. for any help.
    Antonio

    Hi,
    You can try inserting formula and apply Substring formula.
    What is your Currency is it 3 letters like (PHP, USD)?
    Then try
    Substring(F_XXX,0,3) - for 3 letters currency
    Substring(F_XXX,0,2) - for 2 letters currency
    Thanks.
    Clint

  • Display Currency Symbol disabled, but symbol prints if currency in a text formula.  Why?

    Our Crystal Report displays money fields (from our SQL database).
    Our Crystal Reports Designer has the Display Currency Symbol feature disabled by default when writing reports.
    On one report we have a Sell_Amount currency field to display:
    We have this Sell_Amount field directly on the report in one section.
    We also have this Sell_Amount field in a formula for printing in a different section.  This formula is defined as a text field as it will either display 'No Charge' or the Sell_Amount based on a condition, such as:  If {NoCharge} Then 'No Charge' Else ToText(Sell_Amount)
    When viewing this report on our development machine in Crystal Designer, the Currency Symbol does not show for either the Sell_Amount field that is directly on the report or for the Sell_Amount that is in the formula (I am guessing because we have the Display Currency Symbol disabled).
    When viewing on a runtime machine (no Designer, just runtime components), the formula (if NoCharge = False) displays the Sell_Amount (in the formula) WITH the currency symbol, but the Sell_Amount that is directly on the report (not in the formula) does not display the currency symbol.  Why?
    This has been an issue ever since were were on Crystal 8 way back when.  We have never found (nor asked) for a reason, but now we need to know the reason/rules, etc. for this.  We are currently on Crystal 2008 SP6 (Designer) and deploying Crystal Reports Developer for Microsoft Visual Studio SP6 runtime components.  As I said, this has been an issue for years, but we now need an explanation.  I have not been able to locate one on the site anywhere.  Can you please explain the rules of Currency Symbol in this scenario?
    Thank you.

    Hi NB,
    I did say to use the Advanced editor but I did not say to use it for attaching the report...
    So to be clear here is what I see in the report Designer ( I put the formula into text boxes also ):
    For the NoDatabaseCurrency field you have to set the currency to Fixed, Floating will add a space:
    Which is opposite of what you originally posted:
    "...Our Crystal Reports Designer has the Display Currency Symbol feature disabled by default..."
    It's not disabled by default, please explain?
    As for using the CCUR() function the help file does show the Currency symbol is on by default:
    Examples
    The following examples are applicable to both Basic and Crystal syntax:
    CCur (200.20)
    In Crystal syntax this is equivalent to writing $200.20. In Basic syntax, CCur (200.20) is the way to directly create a Currency value of 200.20.
    CCur ("$200.20")
    Returns the Currency value CCur (200.20) given the String value "$200.20".
    CCur ("two hundred dollars")
    Causes an error to occur. The CCur function cannot convert the String "two hundred dollars" to a Currency value.
    So if you mean you went into the Options menu and Fields, Currency and check off this option:
    [Update] - After testing this a few times it does retain the Options, current, Display Currency Symbol, so creating a new report the option is unchecked.
    You are correct, even though I checked it off when I create a new report the option is checked on and obviously it's still on for each field and object. This may be a bug, testing more and checking with a few more people and eventually R&D.
    So please clarify the steps you are doing?
    Make sure you are running CR Designer under local PC Admin rights, right click on the short cut and select run as Administrator or check this option on:
    Thanks
    Don

  • Different currency symbols in report

    Hi All!
    Can anybody show me how to create international reports. I need to show different currency symbols in the same report but for different clients.
    I try to use set_nls function, but no luck.
    Any suggestions will be appreciated!
    It's urgent.
    Mike

    hi2guru wrote:
    > Do u want to display the values in particular currencies?
    Hi,
    I want to have for each row the local currencies and specific rows corporate currency.
    For example (1111 (this is the company code)) and 0010 (this is the corporate currency):
    1111  1000,00USD
    2222  2000,00JPY
    3333  3000,00RMB
    0010 1234,00Euro (1234,00 as example conversion in corporate currency)
    So I have rows with local currency which are transfered all into the BW and displayed in the report.
    And I need particular rows where the conversion should be displayed.
    I know the transaction RSCUR but don´t know how to handle the different currency appearance in the report.

  • Currency symbols on crystal reports rather abbreviation

    This may have been discussed before so my aplogise, i'm fairly new to SAP B1 & crystal so may need some simple instructions
    I am editing the crystal Purchase Order and I have managed to replace foreign currency abbreviation such as EUR & USD with € and $ respectively but when the GBP abbreviation should be shown as £ it is not.
    I believe it has something to do with the OPOR.DocCur which doesn't seem to be used on the purchase order when the business partner is Local Currency (GBP)
    I used a case statement like below:
    case "USD" : "$"
    case "EUR : "€"
    case "GBP" : "£"
    default "£"
    I also removed the case "GBP" : "£" but no joy GBP is showing when the purchase order uses a british business partner.
    What am i doing wrong?
    Thanks in advance!
    Ian

    Hi Lan,
    1.Follow as per Kalaiyarasan Veerasamy .
    2.You have to give {OCRN.DocCurrCod} in Currency symbol formula editor.
    -Rajesh N

Maybe you are looking for

  • Problem backing up multiple internal hard drives to external

    SITUATION: We have 4 internal hard drives dedicated to media + another running the programs. The FCP projects are all saved on one of the media hard drives which also has captured media on it. The other 3 media drives hold the rest of the media for t

  • Printer problem- on new cartridge- repeats alignment test and later repeats documents

    I replaced the black ink cartridge on my HP PSC 1410 All IN ONE.  Often it then repeats the alignment test each time, I turn it on.  The second problem is that when I print a document and indicate ONE copy, it continues printing multiple copies.  Do

  • How to call a function of BRFplus application to another BRFplus applicatio

    Hello Experts, I am new to BRF+ subject. I have a doubt on this. Doubt:- I have two BRF+ application. for example application1 and application2.             in application1 i have created a function<zfunc1> and attached one descision table to the fun

  • MC46 not getting accurate information

    Dear All, My client  needs to view when was the last consumption. However MC46 is not giving me accurate information. It shows (no consumption) Maybe it is because some movement types are not catered by the report. Is it possible? I have new customiz

  • InDesign CS5.5. crashing on startup on my MacBook Air...

    ...used Migration Assistant to transfer it from my iMac and it's not working. Can I download it again from scratch?  I am traveling these days for work and need it on the MacBook Air.  I am told I have no chat support because the version is too old a