How to set website wide locale in an asp.net website.

I noticed that a website I had just deployed was not showing the correct locale even thought the server was configured exactly the same as my development machine. The datetime/location/timezone settings were exactly the same.

I found the below addition to the web.config to be very useful in changing the culture locale:

<configuration>

<system.web>

<globalization
fileEncoding=”utf-8″
requestEncoding=”utf-8″
responseEncoding=”utf-8″
culture=”en-AU”
uiCulture=”en-AU”
/>

Follow

Get every new post delivered to your Inbox.