Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8508819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:16:00+00:00 2026-06-11T03:16:00+00:00

In C# is it possible to get a currency symbol, like ‘£’, from the

  • 0

In C# is it possible to get a currency symbol, like ‘£’, from the 3 character currency code, in this case ‘GBP’?

Is this possible either in SQL Server or in C#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:16:01+00:00Added an answer on June 11, 2026 at 3:16 am

    While a bit brute-force and not particularly elegant, you could do it like this:

    public bool TryGetCurrencySymbol(string ISOCurrencySymbol, out string symbol)
    {
        symbol = CultureInfo
            .GetCultures(CultureTypes.AllCultures)
            .Where(c => !c.IsNeutralCulture)
            .Select(culture => {
                try{
                    return new RegionInfo(culture.Name);
                }
                catch
                {
                    return null;
                }
            })
            .Where(ri => ri!=null && ri.ISOCurrencySymbol == ISOCurrencySymbol)
            .Select(ri => ri.CurrencySymbol)
            .FirstOrDefault();
        return symbol != null;
    }
    

    and use it as follows:

    string currSymbol;
    if(TryGetCurrencySymbol("GBP",out currSymbol))
    {
        Console.WriteLine("symbol is {0}", currSymbol);
    }
    

    If you anticipate hammering this method, perhaps it’s better to build a cache up front:

    public static class CurrencyTools
    {
        private static IDictionary<string,string> map;
        static CurrencyTools()
        {
            map = CultureInfo
                .GetCultures(CultureTypes.AllCultures)
                .Where(c => !c.IsNeutralCulture)
                .Select(culture => {
                    try{
                        return new RegionInfo(culture.Name);
                    }
                    catch
                    {
                        return null;
                    }
                })
                .Where(ri => ri!=null)
                .GroupBy(ri => ri.ISOCurrencySymbol)
                .ToDictionary(x => x.Key, x => x.First().CurrencySymbol);
        }
        public static bool TryGetCurrencySymbol(
                              string ISOCurrencySymbol, 
                              out string symbol)
        {
            return map.TryGetValue(ISOCurrencySymbol,out symbol);
        }
    }
    

    At the time of writing, on my machine etc. etc. the map contains the following mappings:

    AED  د.إ.‏
    AFN  ؋
    ALL  Lekë
    AMD  ֏
    ANG  NAf.
    AOA  Kz
    ARS  $
    AUD  $
    AWG  Afl.
    AZN  ₼
    BAM  КМ
    BBD  $
    BDT  ৳
    BGN  лв.
    BHD  د.ب.‏
    BIF  FBu
    BMD  $
    BND  $
    BOB  Bs
    BRL  R$
    BSD  $
    BTN  Nu.
    BWP  P
    BYN  Br
    BZD  $
    CAD  $
    CDF  FC
    CHF  CHF
    CLP  $
    CNY  ¥
    COP  $
    CRC  ₡
    CUP  $
    CVE  ​
    CZK  Kč
    DJF  Fdj
    DKK  kr.
    DOP  $
    DZD  د.ج.‏
    EGP  ج.م.‏
    ERN  Nfk
    ETB  Br
    EUR  €
    FJD  $
    FKP  £
    GBP  £
    GEL  ₾
    GHS  GH₵
    GIP  £
    GMD  D
    GNF  FG
    GTQ  Q
    GYD  $
    HKD  $
    HNL  L
    HRK  kn
    HTG  G
    HUF  Ft
    IDR  Rp
    ILS  ₪
    INR  ₹
    IQD  د.ع.‏
    IRR  ريال
    ISK  kr
    JMD  $
    JOD  د.ا.‏
    JPY  ¥
    KES  Ksh
    KGS  сом
    KHR  ៛
    KMF  CF
    KPW  ₩
    KRW  ₩
    KWD  د.ك.‏
    KYD  $
    KZT  ₸
    LAK  ₭
    LBP  ل.ل.‏
    LKR  රු.
    LRD  $
    LYD  د.ل.‏
    MAD  د.م.‏
    MDL  L
    MGA  Ar
    MKD  ден
    MMK  K
    MNT  ₮
    MOP  MOP$
    MRU  MRU
    MUR  Rs
    MVR  ރ.
    MWK  MK
    MXN  $
    MYR  RM
    MZN  MTn
    NAD  $
    NGN  ₦
    NIO  C$
    NOK  kr
    NPR  रु
    NZD  $
    OMR  ر.ع.‏
    PAB  B/.
    PEN  S/
    PGK  K
    PHP  ₱
    PKR  Rs
    PLN  zł
    PYG  ₲
    QAR  ر.ق.‏
    RON  lei
    RSD  дин.
    RUB  ₽
    RWF  RF
    SAR  ر.س.‏
    SBD  $
    SCR  SR
    SDG  ج.س.
    SEK  kr
    SGD  $
    SHP  £
    SLL  Le
    SOS  S
    SRD  $
    SSP  £
    STN  Db
    SYP  ل.س.‏
    SZL  E
    THB  ฿
    TJS  смн
    TMT  m.
    TND  د.ت.‏
    TOP  T$
    TRY  ₺
    TTD  $
    TWD  NT$
    TZS  TSh
    UAH  ₴
    UGX  USh
    USD  $
    UYU  $
    UZS  сўм
    VES  Bs.S
    VND  ₫
    VUV  VT
    WST  WS$
    XAF  FCFA
    XCD  EC$
    XDR  XDR
    XOF  CFA
    XPF  FCFP
    YER  ر.ي.‏
    ZAR  R
    ZMW  K
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Get a list of dates between two dates This is my sql:
Is it possible to get the offset from end row? Like some kind of
Possible Duplicate: Get file name from URI string in C# How to extract file
Possible Duplicate: Get all files from VSS for a given date? I need to
Possible Duplicate: Get URL of ASP.Net Page in code-behind I'm trying to hold current
Hi I would like to ask if its possible get array with clear data
Possible Duplicate: Get output from a process Executing DOS commands from Java I am
Possible Duplicate: get image from base64 string I tried header('Content-Type: image/png'); echo base64_decode($data);` But
Is it possible get the assembly information from an imported MEF function? I need
How can I (if possible) get to the ModelMetadata from a view without creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.