Override default regional settings on Windows Server

Mangifesta, Luca 21 Reputation points
2020-10-07T12:46:26.523+00:00

We need to change digit grouping symbol for language Dutch(Belgium) which is not configured as default format language in control panel.

The problem is that on different test machines we have different values as can be seen below:

  • Windows Server 2012 R2 (Digit grouping symbol is " "(white space))

30679-image.png

  • Windows Server 2019 (Digit grouping symbol is "." (dot))

30680-image.png

Is there a way to change digital grouping symbol without setting the format language as default?
We tried to do this but the change is only kept until the format language is changed.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,928 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jenny Yan-MSFT 9,336 Reputation points
    2020-10-12T03:16:07.58+00:00

    Hi,
    The behavior was by design and we have no idea why it changed, but you may feedback such findings in below user voice forum:

    General Feedback-Windows Server
    https://windowsserver.uservoice.com/forums/295047-general-feedback

    Per further checking, Server 2012 provided 2 options for Dutch:Belgium and Netherlands (less than server 2019), while for the latter option, the digital grouping symbol is dot. And in Server 2019, the default symbol for Dutch(Netherlands) is the same.
    31551-image.png

    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,336 Reputation points
    2020-10-09T06:36:20.987+00:00

    Hi,
    I am afraid this is by design cause in my test, I got exactly same behavior that the changes only kept when you apply the language as well.

    Are you using the Digit grouping symbol for any specific text tools? Have you checked if any options provided in that application?

    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny

    0 comments No comments

  2. Mangifesta, Luca 21 Reputation points
    2020-10-09T09:57:42.107+00:00

    Hi,

    Thanks for your answer. We have an application that generate a document with decimal numbers printed based on CultureInfo.

    Example:
    CultureInfo c = new CultureInfo("nl-BE");
    decimal d = (decimal)15000.20;
    Console.WriteLine(d.ToString("N2", c));

    If there is no way to change configuration in Windows we are forced to modify the code to handle this problem.

    Example:
    NumberFormatInfo c = new CultureInfo("nl-BE").NumberFormat;
    c.NumberGroupSeparator = ".";
    decimal d = (decimal)15000.20;
    Console.WriteLine(d.ToString("N2", c));

    But there is a reason why on different operating systems we have different values for the same culture?

    Thanks,
    Luca

    0 comments No comments

  3. Mangifesta, Luca 21 Reputation points
    2020-10-12T09:15:43.16+00:00

    Hi Jenny,

    we finally made a fix on our code to manage the issue.

    As you indicated we were already aware that the problem was only for "nl-BE" because our Dutch customers ("nl-NL") had no problems.

    Thanks,
    Luca

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.