Search code examples
azureweb-configazure-web-app-service

Windows Azure turned £ (GB Pound symbol) to $ (US Dollar symbol)


In my code I have this:

@String.Format("{0:c}", item.Amount) 

It shows for example £4.50 when I run it in debugging mode. When I deployed my app to Windows Azure however it outputs $4.50.

I have deployed to a West Europe website, but obviously the config is set to USA locale. Does anyone know if there's a way for me to manually tell my Azure Website to use £ symbols instead?

I am drifting toward the app settings section under config, but I don't know what key/value to put here.


Solution

  • Read this.

    Solution would be something like:

    <globalization uiCulture="en-GB" culture="en-GB" />
    

    within your system.web section of web.config.

    Good to know is that all VMs in Windows Azure run with default USA locale and UTC time.