Slovenia and the euro

Since January 1st Slovenia is using the Euro, so all e-commerce need to change to the euro. More accurately, the culture settings for Slovenia in Windows need to be changed. Unfortunately there is no patch available yet for Windows and you can’t change the settings through the Configuration Panel (it’ll change back automatically). Until the patch arrives, the following code can remedy the situation:


CultureInfo culture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
culture.NumberFormat.CurrencySymbol =
“€”;
culture.NumberFormat.CurrencyPositivePattern = 2;
// € 19.95
culture.NumberFormat.CurrencyNegativePattern = 12; // € -19.85
Thread.CurrentThread.CurrentCulture = culture;


This changes the culture settings at thread level. Adding this to Application_BeginRequest in global.asax works like a charm, but don’t forget to check the initial culture first…

Leave a Reply

Your email address will not be published. Required fields are marked *